-
-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #12 from brokenhandsio/github-actions
Migrate to GitHub actions
- Loading branch information
Showing
3 changed files
with
30 additions
and
34 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
name: CI | ||
on: | ||
- push | ||
jobs: | ||
xenial: | ||
container: | ||
image: vapor/swift:5.1-xenial | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@master | ||
- run: swift test --enable-test-discovery --enable-code-coverage | ||
bionic: | ||
container: | ||
image: vapor/swift:5.1-bionic | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@master | ||
- 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 | ||
- name: Process coverage file | ||
run: llvm-cov show .build/x86_64-unknown-linux/debug/LeafErrorMiddlewarePackageTests.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 |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters