Skip to content

Commit 914b77f

Browse files
authored
Merge pull request #12 from brokenhandsio/github-actions
Migrate to GitHub actions
2 parents 63dba34 + ceac451 commit 914b77f

3 files changed

Lines changed: 30 additions & 34 deletions

File tree

.github/workflows/ci.yml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: CI
2+
on:
3+
- push
4+
jobs:
5+
xenial:
6+
container:
7+
image: vapor/swift:5.1-xenial
8+
runs-on: ubuntu-latest
9+
steps:
10+
- uses: actions/checkout@master
11+
- run: swift test --enable-test-discovery --enable-code-coverage
12+
bionic:
13+
container:
14+
image: vapor/swift:5.1-bionic
15+
runs-on: ubuntu-latest
16+
steps:
17+
- uses: actions/checkout@master
18+
- name: Run Bionic Tests
19+
run: swift test --enable-test-discovery --enable-code-coverage
20+
- name: Setup container for codecov upload
21+
run: apt-get update && apt-get install curl
22+
- name: Process coverage file
23+
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
24+
- name: Upload code coverage
25+
uses: codecov/codecov-action@v1
26+
with:
27+
token: ${{ secrets.CODECOV_UPLOAD_KEY }}
28+
file: coverage.txt

.travis.yml

Lines changed: 0 additions & 32 deletions
This file was deleted.

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@
55
<a href="https://swift.org">
66
<img src="http://img.shields.io/badge/Swift-4.1-brightgreen.svg" alt="Language">
77
</a>
8-
<a href="https://travis-ci.org/brokenhandsio/leaf-error-middleware">
9-
<img src="https://travis-ci.org/brokenhandsio/leaf-error-middleware.svg?branch=master" alt="Build Status">
8+
<a href="https://github.com/brokenhandsio/leaf-error-middleware/actions">
9+
<img src="https://github.com/brokenhandsio/leaf-error-middleware/workflows/CI/badge.svg?branch=master" alt="Build Status">
1010
</a>
1111
<a href="https://codecov.io/gh/brokenhandsio/leaf-error-middleware">
1212
<img src="https://codecov.io/gh/brokenhandsio/leaf-error-middleware/branch/master/graph/badge.svg" alt="Code Coverage">

0 commit comments

Comments
 (0)