Skip to content

Commit

Permalink
Merge pull request #297 from reviewdog/action-test
Browse files Browse the repository at this point in the history
Run Go Test on GitHub Actions
  • Loading branch information
haya14busa committed Sep 15, 2019
2 parents 69af7f8 + 044a97f commit e9846ae
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 9 deletions.
12 changes: 4 additions & 8 deletions .github/workflows/go.yml
Expand Up @@ -2,8 +2,8 @@ name: Go
on: [push]
jobs:

build:
name: Build
test:
name: Test
runs-on: ubuntu-latest
steps:

Expand All @@ -16,9 +16,5 @@ jobs:
- name: Check out code into the Go module directory
uses: actions/checkout@v1

- name: Get dependencies
run: |
go get -v -t -d ./...
- name: Build
run: go build -v .
- name: Test
run: go test -v -race ./...
1 change: 0 additions & 1 deletion .travis.yml
Expand Up @@ -42,7 +42,6 @@ before_script:
script:
- reviewdog -reporter=github-pr-check
- $(npm bin)/textlint -f checkstyle README.md | reviewdog -f=checkstyle -name="textlint" -reporter=github-pr-check -level=info
- go test -v -race ./...
- go test -coverpkg=./... -coverprofile=coverage.txt ./...

after_success:
Expand Down
1 change: 1 addition & 0 deletions README.md
Expand Up @@ -24,6 +24,7 @@
</p>

<p align="center">
<a href="https://github.com/reviewdog/reviewdog/actions"><img alt="GitHub Actions" src="https://github.com/reviewdog/reviewdog/workflows/Go/badge.svg"></a>
<a href="https://travis-ci.org/reviewdog/reviewdog"><img alt="Travis Status" src="https://img.shields.io/travis/reviewdog/reviewdog/master.svg?label=travis&maxAge=43200"></a>
<a href="https://circleci.com/gh/reviewdog/reviewdog"><img alt="CircleCI Status" src="https://img.shields.io/circleci/project/github/reviewdog/reviewdog/master.svg?label=circle&maxAge=43200"></a>
<a href="https://codecov.io/github/reviewdog/reviewdog"><img alt="Coverage Status" src="https://img.shields.io/codecov/c/github/reviewdog/reviewdog/master.svg?maxAge=43200"></a>
Expand Down
1 change: 1 addition & 0 deletions cienv/cienv_test.go
Expand Up @@ -33,6 +33,7 @@ func setupEnvs() (cleanup func()) {
"TRAVIS_PULL_REQUEST_BRANCH",
"TRAVIS_PULL_REQUEST_SHA",
"TRAVIS_REPO_SLUG",
"GITHUB_ACTION",
}
saveEnvs := make(map[string]string)
for _, key := range cleanEnvs {
Expand Down

0 comments on commit e9846ae

Please sign in to comment.