Skip to content

Commit 8fa4467

Browse files
Merge pull request #98 from go-cmd/dn/pr-builds
Build on GitHub Actions instead of Travis
2 parents 4087270 + c5b7a98 commit 8fa4467

File tree

2 files changed

+49
-18
lines changed

2 files changed

+49
-18
lines changed

.github/workflows/go.yml

+49
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
# This workflow will build a golang project
2+
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-go
3+
4+
name: Go
5+
6+
on:
7+
push:
8+
branches: [ "master" ]
9+
pull_request:
10+
branches: [ "master" ]
11+
12+
jobs:
13+
test:
14+
runs-on: ubuntu-latest
15+
strategy:
16+
fail-fast: false
17+
matrix:
18+
go:
19+
- '1.20'
20+
- '1.19'
21+
steps:
22+
- uses: actions/checkout@v3
23+
24+
- name: Set up Go
25+
uses: actions/setup-go@v3
26+
with:
27+
go-version: ${{ matrix.go }}
28+
29+
- name: Build
30+
run: go build
31+
32+
- name: Test
33+
run: go test -v -coverprofile=profile.cov
34+
35+
- name: coveralls.io
36+
uses: shogo82148/actions-goveralls@v1
37+
with:
38+
path-to-profile: profile.cov
39+
flag-name: Go-${{ matrix.go }}
40+
parallel: true
41+
42+
finish:
43+
needs: test
44+
runs-on: ubuntu-latest
45+
steps:
46+
- uses: shogo82148/actions-goveralls@v1
47+
with:
48+
parallel-finished: true
49+

.travis.yml

-18
This file was deleted.

0 commit comments

Comments
 (0)