Skip to content

Commit

Permalink
Merge branch 'feature/github-actions' into develop
Browse files Browse the repository at this point in the history
  • Loading branch information
ChrisHines committed Feb 27, 2021
2 parents e81e8f5 + 82b160a commit 2c97639
Show file tree
Hide file tree
Showing 2 changed files with 44 additions and 18 deletions.
44 changes: 44 additions & 0 deletions .github/workflows/test.yml
@@ -0,0 +1,44 @@
on:
push:
pull_request:
types: [synchronize]
schedule:
- cron: "0 0 1,11,21 * *"
name: Test
jobs:
test:
strategy:
fail-fast: false
matrix:
go-version:
- 1.13.x
- 1.14.x
- 1.15.x
- 1.16.x
os: [ubuntu-latest, macos-latest, windows-latest]
runs-on: ${{ matrix.os }}
steps:
- name: Install Go
uses: actions/setup-go@v2
with:
go-version: ${{ matrix.go-version }}
- name: Checkout code
uses: actions/checkout@v2
- name: Test
run: go test ./...
- name: Test coverage
run: go test -coverprofile="cover.out" ./... # quotes needed for powershell
- name: Send coverage
uses: shogo82148/actions-goveralls@v1
with:
path-to-profile: cover.out
flag-name: go${{ matrix.go-version }}-${{ matrix.os }}
parallel: true
# notifies that all test jobs are finished.
finish:
needs: test
runs-on: ubuntu-latest
steps:
- uses: shogo82148/actions-goveralls@v1
with:
parallel-finished: true
18 changes: 0 additions & 18 deletions .travis.yml

This file was deleted.

0 comments on commit 2c97639

Please sign in to comment.