-
-
Notifications
You must be signed in to change notification settings - Fork 31
38 lines (34 loc) · 1.17 KB
/
test.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
name: test
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
on:
pull_request: { types: [opened, reopened, synchronize, ready_for_review] }
push: { branches: [ main ] }
env:
LOG_LEVEL: info
SWIFT_DETERMINISTIC_HASHING: 1
jobs:
# also serves as code coverage baseline update
unit-tests:
uses: vapor/ci/.github/workflows/run-unit-tests.yml@main
secrets: inherit
# Make sure downstream dependents still work
dependents-check:
if: ${{ !(github.event.pull_request.draft || false) }}
runs-on: ubuntu-latest
container: swift:5.10-jammy
steps:
- name: Check out package
uses: actions/checkout@v4
with:
path: sqlite-kit
- name: Check out FluentKit driver
uses: actions/checkout@v4
with:
repository: vapor/fluent-sqlite-driver
path: fluent-sqlite-driver
- name: Tell dependents to use local checkout
run: swift package --package-path fluent-sqlite-driver edit sqlite-kit --path sqlite-kit
- name: Run FluentSQLiteDriver tests with Thread Sanitizer
run: swift test --package-path fluent-sqlite-driver --sanitize=thread