Skip to content

Commit aee5f05

Browse files
authored
Use the modern CI (#16)
1 parent f0cdf12 commit aee5f05

File tree

1 file changed

+13
-34
lines changed

1 file changed

+13
-34
lines changed

.github/workflows/ci.yml

Lines changed: 13 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -1,36 +1,15 @@
1-
name: CI
1+
name: test
2+
concurrency:
3+
group: ${{ github.workflow }}-${{ github.ref }}
4+
cancel-in-progress: true
25
on:
3-
- push
4-
- pull_request
6+
pull_request: { types: [opened, reopened, synchronize, ready_for_review] }
7+
push: { branches: [ main ] }
8+
59
jobs:
6-
xenial:
7-
container:
8-
image: vapor/swift:5.1-xenial
9-
runs-on: ubuntu-latest
10-
steps:
11-
- uses: actions/checkout@v2
12-
- run: swift test --enable-test-discovery
13-
swift55:
14-
container:
15-
image: swift:5.5
16-
runs-on: ubuntu-latest
17-
steps:
18-
- uses: actions/checkout@v2
19-
- run: swift test
20-
bionic:
21-
container:
22-
image: vapor/swift:5.1-bionic
23-
runs-on: ubuntu-latest
24-
steps:
25-
- uses: actions/checkout@v2
26-
- name: Run Bionic Tests
27-
run: swift test --enable-test-discovery --enable-code-coverage
28-
- name: Setup container for codecov upload
29-
run: apt-get update && apt-get install curl -y
30-
- name: Process coverage file
31-
run: llvm-cov show .build/x86_64-unknown-linux/debug/SwiftMarkdownPackageTests.xctest -instr-profile=.build/x86_64-unknown-linux/debug/codecov/default.profdata > coverage.txt
32-
- name: Upload code coverage
33-
uses: codecov/codecov-action@v1
34-
with:
35-
token: ${{ secrets.CODECOV_UPLOAD_KEY }}
36-
file: coverage.txt
10+
unit-tests:
11+
uses: vapor/ci/.github/workflows/run-unit-tests.yml@main
12+
with:
13+
with_tsan: false
14+
secrets:
15+
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}

0 commit comments

Comments
 (0)