Skip to content

Commit 67c5217

Browse files
committed
Attempt to use GitHub Actions.
1 parent 2f7211a commit 67c5217

File tree

2 files changed

+28
-6
lines changed

2 files changed

+28
-6
lines changed

.github/workflows/test.yml

+28
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: Test
2+
3+
on: [push, pull_request]
4+
5+
jobs:
6+
build:
7+
name: Test
8+
runs-on: ubuntu-latest
9+
steps:
10+
- name: Set up Go 1.x
11+
uses: actions/setup-go@v2
12+
with:
13+
go-version: ^1.14
14+
id: go
15+
16+
- name: Check out code into the Go module directory
17+
uses: actions/checkout@v2
18+
19+
- name: Build
20+
run: go build -v .
21+
22+
- name: Test
23+
run: go test -coverprofile=coverage.out -covermode=atomic -v .
24+
25+
- name: Upload coverage report
26+
uses: codecov/codecov-action@v1
27+
with:
28+
file: ./coverage.out

.travis.yml

-6
This file was deleted.

0 commit comments

Comments
 (0)