Skip to content

Commit 2c97639

Browse files
committed
Merge branch 'feature/github-actions' into develop
2 parents e81e8f5 + 82b160a commit 2c97639

File tree

2 files changed

+44
-18
lines changed

2 files changed

+44
-18
lines changed

.github/workflows/test.yml

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
on:
2+
push:
3+
pull_request:
4+
types: [synchronize]
5+
schedule:
6+
- cron: "0 0 1,11,21 * *"
7+
name: Test
8+
jobs:
9+
test:
10+
strategy:
11+
fail-fast: false
12+
matrix:
13+
go-version:
14+
- 1.13.x
15+
- 1.14.x
16+
- 1.15.x
17+
- 1.16.x
18+
os: [ubuntu-latest, macos-latest, windows-latest]
19+
runs-on: ${{ matrix.os }}
20+
steps:
21+
- name: Install Go
22+
uses: actions/setup-go@v2
23+
with:
24+
go-version: ${{ matrix.go-version }}
25+
- name: Checkout code
26+
uses: actions/checkout@v2
27+
- name: Test
28+
run: go test ./...
29+
- name: Test coverage
30+
run: go test -coverprofile="cover.out" ./... # quotes needed for powershell
31+
- name: Send coverage
32+
uses: shogo82148/actions-goveralls@v1
33+
with:
34+
path-to-profile: cover.out
35+
flag-name: go${{ matrix.go-version }}-${{ matrix.os }}
36+
parallel: true
37+
# notifies that all test jobs are finished.
38+
finish:
39+
needs: test
40+
runs-on: ubuntu-latest
41+
steps:
42+
- uses: shogo82148/actions-goveralls@v1
43+
with:
44+
parallel-finished: true

.travis.yml

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

0 commit comments

Comments
 (0)