|
1 |
| -name: CI |
| 1 | +name: "GRDB CI" |
2 | 2 |
|
3 | 3 | on:
|
4 | 4 | push:
|
5 |
| - branches: [ master, development ] |
| 5 | + branches: |
| 6 | + - master |
| 7 | + - development |
| 8 | + paths: |
| 9 | + - 'GRDB/**' |
| 10 | + - 'Tests/**' |
| 11 | + - '.github/workflows/**' |
| 12 | + - 'Package.swift' |
6 | 13 | pull_request:
|
7 |
| - branches: [ master, development ] |
| 14 | + paths: |
| 15 | + - 'GRDB/**' |
| 16 | + - 'Tests/**' |
| 17 | + - '.github/workflows/**' |
| 18 | + - 'Package.swift' |
8 | 19 |
|
| 20 | +concurrency: |
| 21 | + group: ${{ github.ref_name }} |
| 22 | + cancel-in-progress: true |
9 | 23 | jobs:
|
10 |
| - build: |
11 |
| - |
12 |
| - runs-on: macos-latest |
13 |
| - |
| 24 | + macOS: |
| 25 | + name: Test macOS, All Xcodes and Swifts |
| 26 | + runs-on: ${{ matrix.runsOn }} |
| 27 | + env: |
| 28 | + DEVELOPER_DIR: "/Applications/${{ matrix.xcode }}/Contents/Developer" |
| 29 | + timeout-minutes: 10 |
| 30 | + strategy: |
| 31 | + fail-fast: false |
| 32 | + matrix: |
| 33 | + include: |
| 34 | + - xcode: "Xcode_13.3.1.app" |
| 35 | + runsOn: macOS-12 |
| 36 | + name: "macOS 12, Xcode 13.3.1, Swift 5.6" |
| 37 | + shell: "/bin/zsh {0}" |
| 38 | + - xcode: "Xcode_13.2.1.app" |
| 39 | + runsOn: macOS-11 |
| 40 | + name: "macOS 11, Xcode 13.2.1, Swift 5.5.2" |
| 41 | + shell: "/bin/zsh {0}" |
| 42 | + - xcode: "Xcode_13.1.app" |
| 43 | + runsOn: macOS-11 |
| 44 | + name: "macOS 11, Xcode 13.1, Swift 5.5.1" |
| 45 | + shell: "/bin/zsh {0}" |
| 46 | + - xcode: "Xcode_13.0.app" |
| 47 | + runsOn: macOS-11 |
| 48 | + name: "macOS 11, Xcode 13.0, Swift 5.5.0" |
| 49 | + shell: "/bin/zsh {0}" |
| 50 | + - xcode: "Xcode_12.5.1.app" |
| 51 | + runsOn: macOS-11 |
| 52 | + name: "macOS 11, Xcode 12.5.1, Swift 5.4" |
| 53 | + shell: "/bin/zsh {0}" |
| 54 | + - xcode: "Xcode_12.4.app" |
| 55 | + runsOn: macOS-10.15 |
| 56 | + name: "macOS 10.15, Xcode 12.4, Swift 5.3" |
| 57 | + shell: "/bin/zsh {0}" |
14 | 58 | steps:
|
15 |
| - - uses: actions/checkout@v2 |
16 |
| - - name: Build |
17 |
| - run: swift build -v |
18 |
| - - name: Run tests |
19 |
| - run: swift test -v |
| 59 | + - uses: actions/checkout@v2 |
| 60 | + - name: ${{ matrix.name }} |
| 61 | + run: make test_framework_GRDBOSX_maxSwift |
0 commit comments