-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
58 lines (55 loc) · 1.51 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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
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 ] }
jobs:
test-providers:
if: ${{ !(github.event.pull_request.draft || false) }}
strategy:
fail-fast: false
matrix:
provider:
- vapor/jwt
- vapor/fluent
- vapor/leaf
- vapor/queues
- vapor/apns
include:
- ref: main
- provider: vapor/apns
ref: 3.0.0
runs-on: ubuntu-latest
container: swift:5.10
steps:
- name: Check out Vapor
uses: actions/checkout@v4
with:
path: vapor
- name: Check out provider
uses: actions/checkout@v4
with:
repository: ${{ matrix.provider }}
path: provider
ref: ${{ matrix.ref }}
- name: Use local Vapor
run: swift package --package-path ./provider edit vapor --path ./vapor
- name: Run tests
env:
SWIFT_DETERMINISTIC_HASHING: 1
run: swift test --package-path ./provider
unit-tests:
uses: vapor/ci/.github/workflows/run-unit-tests.yml@main
with:
with_tsan: false
test-parallel:
if: ${{ !(github.event.pull_request.draft || false) }}
runs-on: ubuntu-latest
container: swift:5.10
steps:
- name: Check out Vapor
uses: actions/checkout@v4
- name: Run tests
run: swift test --parallel