Skip to content

Commit 52685c8

Browse files
committed
CI: Update codecov action version, reenable TSan, add coverage of PostgreSQL 13
1 parent e1ce9f4 commit 52685c8

File tree

1 file changed

+8
-12
lines changed

1 file changed

+8
-12
lines changed

.github/workflows/test.yml

Lines changed: 8 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,9 @@ jobs:
7272
- name: Run unit tests for coverage data
7373
run: swift test --enable-code-coverage
7474
- name: Upload coverage data
75-
uses: vapor/swift-codecov-action@v0.2
75+
uses: vapor/swift-codecov-action@v0.3
76+
with:
77+
codecov_token: ${{ secrets.CODECOV_TOKEN }}
7678

7779
gh-codeql:
7880
if: ${{ false && !(github.event.pull_request.draft || false) }}
@@ -87,18 +89,12 @@ jobs:
8789
- name: Mark repo safe in non-fake global config
8890
run: |
8991
git config --global --add safe.directory "${GITHUB_WORKSPACE}"
90-
- name: Check Swift compatibility
91-
id: swift-check
92-
uses: vapor/ci/.github/actions/check-compatible-swift@main
9392
- name: Initialize CodeQL
94-
if: ${{ steps.swift-check.outputs.swift-compatible == 'true' }}
9593
uses: github/codeql-action/init@v3
9694
with: { languages: swift }
9795
- name: Perform build
98-
if: ${{ steps.swift-check.outputs.swift-compatible == 'true' }}
9996
run: swift build
10097
- name: Run CodeQL analyze
101-
if: ${{ steps.swift-check.outputs.swift-compatible == 'true' }}
10298
uses: github/codeql-action/analyze@v3
10399

104100
linux-unit:
@@ -137,7 +133,7 @@ jobs:
137133
- name: Check out package
138134
uses: actions/checkout@v4
139135
- name: Run local tests
140-
run: swift test
136+
run: swift test --sanitize=thread
141137

142138
linux-integration:
143139
if: ${{ !(github.event.pull_request.draft || false) }}
@@ -170,7 +166,7 @@ jobs:
170166
- name: Use local package
171167
run: swift package --package-path fluent-postgres-driver edit postgres-kit --path postgres-kit
172168
- name: Run fluent-postgres-kit tests
173-
run: swift test --package-path fluent-postgres-driver
169+
run: swift test --package-path fluent-postgres-driver --sanitize=thread
174170

175171
macos-unit:
176172
if: ${{ !(github.event.pull_request.draft || false) }}
@@ -194,12 +190,12 @@ jobs:
194190
- name: Install Postgres, setup DB and auth, and wait for server start
195191
run: |
196192
brew upgrade || true
197-
export PATH="$(brew --prefix)/opt/postgresql@14/bin:$PATH" PGDATA=/tmp/vapor-postgres-test
198-
(brew unlink postgresql@14 || true) && brew install "postgresql@15" && brew link --force "postgresql@15"
193+
export PATH="$(brew --prefix)/opt/postgresql@13/bin:$PATH" PGDATA=/tmp/vapor-postgres-test
194+
(brew unlink postgresql@14 || true) && brew install "postgresql@13" && brew link --force "postgresql@13"
199195
initdb --locale=C --auth-host "scram-sha-256" -U "${POSTGRES_USER}" --pwfile=<(echo "${POSTGRES_PASSWORD}")
200196
pg_ctl start --wait
201197
timeout-minutes: 15
202198
- name: Checkout code
203199
uses: actions/checkout@v4
204200
- name: Run local tests
205-
run: swift test
201+
run: swift test --sanitize=thread

0 commit comments

Comments
 (0)