Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 2b2a226

Browse files
committed
CI update (add concurrency spec, use API breakage workflow, add 5.8 nightly test, enable TSan)
1 parent b075d25 commit 2b2a226

File tree

1 file changed

+12
-13
lines changed

1 file changed

+12
-13
lines changed

β€Ž.github/workflows/test.yml

Lines changed: 12 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
11
name: test
2+
concurrency:
3+
group: ${{ github.workflow }}-${{ github.ref }}
4+
cancel-in-progress: true
25
on:
36
pull_request: { branches: ['*'] }
47
push: { branches: ['main'] }
@@ -69,13 +72,9 @@ jobs:
6972
steps:
7073
- name: Check out package
7174
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
7978

8079
linux-all:
8180
if: github.event_name == 'pull_request'
@@ -85,6 +84,7 @@ jobs:
8584
dbimage: ['postgres:15', 'postgres:13', 'postgres:11']
8685
swiftver: [
8786
'swift:5.5-bionic', 'swift:5.6-focal', 'swift:5.7-jammy',
87+
'swiftlang/swift:nightly-5.8-jammy',
8888
'swiftlang/swift:nightly-main-jammy'
8989
]
9090
include: [
@@ -115,16 +115,16 @@ jobs:
115115
- name: Check out package
116116
uses: actions/checkout@v3
117117
- name: Run all tests
118-
run: swift test
118+
run: swift test --sanitize=thread
119119

120120
macos-all:
121121
if: github.event_name == 'pull_request'
122122
strategy:
123123
fail-fast: false
124124
matrix:
125-
dbimage: ['postgresql@14']# N.B.: As of this writing, Homebrew didn't have Postgres 15 yet
125+
dbimage: ['postgresql@14']
126126
dbauth: ['scram-sha-256']
127-
macos: ['macos-11', 'macos-12']
127+
macos: ['macos-12']
128128
xcode: ['latest-stable']
129129
runs-on: ${{ matrix.macos }}
130130
env:
@@ -159,15 +159,14 @@ jobs:
159159
- name: Checkout code
160160
uses: actions/checkout@v3
161161
- name: Run all tests
162-
run: swift test
162+
run: swift test --sanitize=thread
163163

164164
test-exports:
165165
name: Test exports
166166
runs-on: ubuntu-latest
167167
steps:
168168
- name: Check out Vapor
169169
uses: actions/checkout@v3
170-
with:
171-
fetch-depth: 0
170+
with: { 'fetch-depth': 0 }
172171
- name: Build
173172
run: swift build -Xswiftc -DBUILDING_DOCC

0 commit comments

Comments
(0)

AltStyle γ«γ‚ˆγ£γ¦ε€‰ζ›γ•γ‚ŒγŸγƒšγƒΌγ‚Έ (->γ‚ͺγƒͺγ‚ΈγƒŠγƒ«) /