|
1 | 1 | name: test
|
| 2 | +concurrency: |
| 3 | + group: ${{ github.workflow }}-${{ github.ref }} |
| 4 | + cancel-in-progress: true |
2 | 5 | on:
|
3 | 6 | pull_request: { branches: ['*'] }
|
4 | 7 | push: { branches: ['main'] }
|
|
69 | 72 | steps:
|
70 | 73 | - name: Check out package
|
71 | 74 | uses: actions/checkout@v3
|
72 | | - with: |
73 | | - fetch-depth: 0 |
74 | | - # https://github.com/actions/checkout/issues/766 |
75 | | - - name: Mark the workspace as safe |
76 | | - run: git config --global --add safe.directory ${GITHUB_WORKSPACE} |
77 | | - - name: Check for API breaking changes |
78 | | - run: swift package diagnose-api-breaking-changes origin/main |
| 75 | + with: { 'fetch-depth': 0 } |
| 76 | + - name: Run API breakage check action |
| 77 | + uses: vapor/ci/.github/actions/ci-swift-check-api-breakage@reusable-workflows |
79 | 78 |
|
80 | 79 | linux-all:
|
81 | 80 | if: github.event_name == 'pull_request'
|
|
85 | 84 | dbimage: ['postgres:15', 'postgres:13', 'postgres:11']
|
86 | 85 | swiftver: [
|
87 | 86 | 'swift:5.5-bionic', 'swift:5.6-focal', 'swift:5.7-jammy',
|
| 87 | + 'swiftlang/swift:nightly-5.8-jammy', |
88 | 88 | 'swiftlang/swift:nightly-main-jammy'
|
89 | 89 | ]
|
90 | 90 | include: [
|
@@ -115,16 +115,16 @@ jobs:
|
115 | 115 | - name: Check out package
|
116 | 116 | uses: actions/checkout@v3
|
117 | 117 | - name: Run all tests
|
118 | | - run: swift test |
| 118 | + run: swift test --sanitize=thread |
119 | 119 |
|
120 | 120 | macos-all:
|
121 | 121 | if: github.event_name == 'pull_request'
|
122 | 122 | strategy:
|
123 | 123 | fail-fast: false
|
124 | 124 | matrix:
|
125 | | - dbimage: ['postgresql@14']# N.B.: As of this writing, Homebrew didn't have Postgres 15 yet |
| 125 | + dbimage: ['postgresql@14'] |
126 | 126 | dbauth: ['scram-sha-256']
|
127 | | - macos: ['macos-11', 'macos-12'] |
| 127 | + macos: ['macos-12'] |
128 | 128 | xcode: ['latest-stable']
|
129 | 129 | runs-on: ${{ matrix.macos }}
|
130 | 130 | env:
|
@@ -159,15 +159,14 @@ jobs:
|
159 | 159 | - name: Checkout code
|
160 | 160 | uses: actions/checkout@v3
|
161 | 161 | - name: Run all tests
|
162 | | - run: swift test |
| 162 | + run: swift test --sanitize=thread |
163 | 163 |
|
164 | 164 | test-exports:
|
165 | 165 | name: Test exports
|
166 | 166 | runs-on: ubuntu-latest
|
167 | 167 | steps:
|
168 | 168 | - name: Check out Vapor
|
169 | 169 | uses: actions/checkout@v3
|
170 | | - with: |
171 | | - fetch-depth: 0 |
| 170 | + with: { 'fetch-depth': 0 } |
172 | 171 | - name: Build
|
173 | 172 | run: swift build -Xswiftc -DBUILDING_DOCC
|
0 commit comments