From 29ec8d5d7b348303fa6475e3ab117e2ca619044e Mon Sep 17 00:00:00 2001 From: haya14busa Date: Sun, 15 Sep 2019 12:56:06 +0000 Subject: [PATCH 1/3] Run Go Test on GitHub Actions --- .github/workflows/go.yml | 12 ++++-------- .travis.yml | 1 - 2 files changed, 4 insertions(+), 9 deletions(-) diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml index 52163cba4a..2b48492860 100644 --- a/.github/workflows/go.yml +++ b/.github/workflows/go.yml @@ -2,8 +2,8 @@ name: Go on: [push] jobs: - build: - name: Build + test: + name: Test runs-on: ubuntu-latest steps: @@ -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 ./... diff --git a/.travis.yml b/.travis.yml index 55ce8527bd..53230bfb2f 100644 --- a/.travis.yml +++ b/.travis.yml @@ -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: From a99e92e2e7a31c83ff91847bbe6d4c2855a65ccb Mon Sep 17 00:00:00 2001 From: haya14busa Date: Sun, 15 Sep 2019 12:58:08 +0000 Subject: [PATCH 2/3] Add GitHub Actions badge --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index 7af86e5267..475a43f33e 100644 --- a/README.md +++ b/README.md @@ -24,6 +24,7 @@

+ GitHub Actions Travis Status CircleCI Status Coverage Status From 044a97ff276dc76886ac156c11b9347db053bd29 Mon Sep 17 00:00:00 2001 From: haya14busa Date: Sun, 15 Sep 2019 13:19:00 +0000 Subject: [PATCH 3/3] fix test on GitHub Actions --- cienv/cienv_test.go | 1 + 1 file changed, 1 insertion(+) diff --git a/cienv/cienv_test.go b/cienv/cienv_test.go index 9af0ffce5f..54f90b12d3 100644 --- a/cienv/cienv_test.go +++ b/cienv/cienv_test.go @@ -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 {