-
Notifications
You must be signed in to change notification settings - Fork 2
38 lines (35 loc) · 918 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
34
35
36
37
38
name: Test WebPush
on:
pull_request:
branches:
- main
push:
branches:
- main
jobs:
Test-Release:
name: "Test Release"
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- name: Checkout Source
uses: actions/checkout@v3
- name: Build
run: |
swift build --build-tests --configuration release -Xswiftc -enable-testing -Xswiftc -warnings-as-errors -Xcc -Werror
- name: Run Tests
run: |
swift test --skip-build --configuration release
Test-Debug:
name: "Test Debug"
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- name: Checkout Source
uses: actions/checkout@v3
- name: Build
run: |
swift build --build-tests --configuration debug -Xswiftc -enable-testing -Xswiftc -warnings-as-errors -Xcc -Werror
- name: Run Tests
run: |
swift test --skip-build --configuration debug