-
-
Notifications
You must be signed in to change notification settings - Fork 38
33 lines (31 loc) · 962 Bytes
/
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
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:
unit-tests:
uses: vapor/ci/.github/workflows/run-unit-tests.yml@main
leaf-integration:
if: ${{ !(github.event.pull_request.draft || false) }}
runs-on: ubuntu-latest
container: swift:jammy
steps:
- name: Check out LeafKit
uses: actions/checkout@v4
with:
path: leaf-kit
- name: Check out Leaf provider
uses: actions/checkout@v4
with:
repository: vapor/leaf
path: leaf
- name: Use local LeafKit
run: swift package --package-path leaf edit leaf-kit --path ./leaf-kit
- name: Run tests with Thread Sanitizer
run: swift test --package-path leaf --sanitize=thread