Skip to content

Commit

Permalink
Merge pull request #20 from woothee/ci-on-github-workflow
Browse files Browse the repository at this point in the history
Setup CI on GitHub Workflow
  • Loading branch information
tagomoris committed Sep 7, 2021
2 parents efc2b4d + 8348de7 commit 440fe87
Show file tree
Hide file tree
Showing 5 changed files with 39 additions and 20 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/go.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: Go

on:
push:
branches:
- master
- main
pull_request:
branches: '*'

jobs:
build:
strategy:
matrix:
go: ['1.16', '1.17']
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: ${{ matrix.go }}
- run: go mod download
- run: go build -v ./...
- run: go test -race -covermode atomic -coverprofile=covprofile ./...
- run: go install github.com/mattn/goveralls@latest
- name: Send coverage
env:
COVERALLS_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: goveralls -coverprofile=covprofile -service=github
20 changes: 0 additions & 20 deletions .travis.yml

This file was deleted.

1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ go get github.com/woothee/woothee-go
## Running Tests

```
go mod download
go test -v ./...
```

Expand Down
5 changes: 5 additions & 0 deletions go.mod
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
module github.com/woothee/woothee-go

go 1.17

require gopkg.in/yaml.v2 v2.4.0 // indirect
3 changes: 3 additions & 0 deletions go.sum
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0=
gopkg.in/yaml.v2 v2.4.0 h1:D8xgwECY7CYvx+Y2n4sBz93Jn9JRvxdiyyo8CTfuKaY=
gopkg.in/yaml.v2 v2.4.0/go.mod h1:RDklbk79AGWmwhnvt/jBztapEOGDOx6ZbXqjP6csGnQ=

0 comments on commit 440fe87

Please sign in to comment.