|
1 | 1 | name: Build and test |
2 | | -on: [push, pull_request] |
| 2 | +on: |
| 3 | + push: |
| 4 | + branches: |
| 5 | + - master |
| 6 | + pull_request: |
| 7 | + branches: |
| 8 | + - master |
| 9 | +concurrency: |
| 10 | + group: ci-${{ github.ref }} |
| 11 | + cancel-in-progress: ${{ github.ref != 'refs/heads/master' }} |
3 | 12 | env: |
4 | 13 | IOS_SIMULATOR: "iPhone 16" |
5 | 14 | IOS_VERSION: "18.4" |
6 | 15 | jobs: |
7 | 16 | build: |
8 | 17 | runs-on: macos-15 |
9 | 18 | steps: |
10 | | - - uses: actions/checkout@v2 |
| 19 | + - uses: actions/checkout@v4 |
11 | 20 | - name: "Lint" |
12 | 21 | run: make lint |
13 | 22 | - name: "Run tests (PACKAGE_MANAGER_COMMAND: test)" |
@@ -42,30 +51,10 @@ jobs: |
42 | 51 | env: |
43 | 52 | VALIDATOR_SUBSPEC: SQLCipher |
44 | 53 | run: ./run-tests.sh |
45 | | - - name: "Run tests (CARTHAGE_PLATFORM: iOS)" |
46 | | - env: |
47 | | - CARTHAGE_PLATFORM: iOS |
48 | | - run: ./run-tests.sh |
49 | | - - name: "Run tests (CARTHAGE_PLATFORM: Mac)" |
50 | | - env: |
51 | | - CARTHAGE_PLATFORM: Mac |
52 | | - run: ./run-tests.sh |
53 | | - - name: "Run tests (CARTHAGE_PLATFORM: watchOS)" |
54 | | - env: |
55 | | - CARTHAGE_PLATFORM: watchOS |
56 | | - run: ./run-tests.sh |
57 | | - - name: "Run tests (CARTHAGE_PLATFORM: tvOS)" |
58 | | - env: |
59 | | - CARTHAGE_PLATFORM: tvOS |
60 | | - run: ./run-tests.sh |
61 | | - - name: "Run tests (CARTHAGE_PLATFORM: visionOS)" |
62 | | - env: |
63 | | - CARTHAGE_PLATFORM: visionOS |
64 | | - run: ./run-tests.sh |
65 | 54 | build-linux: |
66 | 55 | runs-on: ubuntu-latest |
67 | 56 | steps: |
68 | | - - uses: actions/checkout@v2 |
| 57 | + - uses: actions/checkout@v4 |
69 | 58 | - name: Install |
70 | 59 | run: | |
71 | 60 | sudo apt-get update -qq |
|
79 | 68 | build-android: |
80 | 69 | runs-on: ubuntu-latest |
81 | 70 | steps: |
82 | | - - uses: actions/checkout@v2 |
83 | | - - name: Run tests |
| 71 | + - uses: actions/checkout@v4 |
| 72 | + - name: Run tests on Android |
84 | 73 | uses: skiptools/swift-android-action@v2 |
| 74 | + with: |
| 75 | + # Ubuntu runners low on space causes the emulator to fail to install |
| 76 | + free-disk-space: true |
0 commit comments