-
Notifications
You must be signed in to change notification settings - Fork 346
48 lines (43 loc) · 1.08 KB
/
swift.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
name: Swift CI
on:
push:
paths:
- 'swift/**'
- '.github/workflows/swift**'
pull_request:
paths:
- 'swift/**'
- '.github/workflows/swift**'
schedule:
# weekly build every FRI
- cron: "0 6 * * 5"
jobs:
xctest-check:
strategy:
matrix:
operating-system: [ ubuntu-latest, macOS-latest ]
runs-on: ${{ matrix.operating-system }}
env:
DEVELOPER_DIR: /Applications/Xcode_13.2.app/Contents/Developer
steps:
- uses: actions/checkout@v3
- name: Build
working-directory: swift/KataXCTest
run: swift build
- name: Run tests
working-directory: swift/KataXCTest
continue-on-error: true
run: swift test
quick-checks:
runs-on: macOS-latest
env:
DEVELOPER_DIR: /Applications/Xcode_13.2.app/Contents/Developer
steps:
- uses: actions/checkout@v3
- name: Build
working-directory: swift/KataQuick
run: swift build
- name: Run Tests
working-directory: swift/KataQuick
continue-on-error: true
run: swift test