Skip to content

Commit

Permalink
Merge pull request #12 from brokenhandsio/github-actions
Browse files Browse the repository at this point in the history
Migrate to GitHub actions
  • Loading branch information
0xTim authored Nov 29, 2019
2 parents 63dba34 + ceac451 commit 914b77f
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 34 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/ci.yml
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
32 changes: 0 additions & 32 deletions .travis.yml

This file was deleted.

4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
<a href="https://swift.org">
<img src="http://img.shields.io/badge/Swift-4.1-brightgreen.svg" alt="Language">
</a>
<a href="https://travis-ci.org/brokenhandsio/leaf-error-middleware">
<img src="https://travis-ci.org/brokenhandsio/leaf-error-middleware.svg?branch=master" alt="Build Status">
<a href="https://github.com/brokenhandsio/leaf-error-middleware/actions">
<img src="https://github.com/brokenhandsio/leaf-error-middleware/workflows/CI/badge.svg?branch=master" alt="Build Status">
</a>
<a href="https://codecov.io/gh/brokenhandsio/leaf-error-middleware">
<img src="https://codecov.io/gh/brokenhandsio/leaf-error-middleware/branch/master/graph/badge.svg" alt="Code Coverage">
Expand Down

0 comments on commit 914b77f

Please sign in to comment.