Skip to content

Commit

Permalink
Use the modern CI
Browse files Browse the repository at this point in the history
  • Loading branch information
gwynne authored Oct 12, 2024
1 parent f0cdf12 commit ca54e05
Showing 1 changed file with 13 additions and 34 deletions.
47 changes: 13 additions & 34 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,36 +1,15 @@
name: CI
name: test
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
on:
- push
- pull_request
pull_request: { types: [opened, reopened, synchronize, ready_for_review] }
push: { branches: [ main ] }

jobs:
xenial:
container:
image: vapor/swift:5.1-xenial
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- run: swift test --enable-test-discovery
swift55:
container:
image: swift:5.5
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- run: swift test
bionic:
container:
image: vapor/swift:5.1-bionic
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Run Bionic Tests
run: swift test --enable-test-discovery --enable-code-coverage
- name: Setup container for codecov upload
run: apt-get update && apt-get install curl -y
- name: Process coverage file
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
- name: Upload code coverage
uses: codecov/codecov-action@v1
with:
token: ${{ secrets.CODECOV_UPLOAD_KEY }}
file: coverage.txt
unit-tests:
uses: vapor/ci/.github/workflows/run-unit-tests.yml@main
with:
with_tsan: false
secrets:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}

0 comments on commit ca54e05

Please sign in to comment.