From 02e7dbb187ceb4296abf0767830381254ac9a8a0 Mon Sep 17 00:00:00 2001 From: Koichi Shiraishi Date: Wed, 7 Oct 2020 01:49:58 +0900 Subject: [PATCH 1/4] github/workflows: upgrade setup-go to v2 --- .github/workflows/go.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml index 99e6afa..6fbac02 100644 --- a/.github/workflows/go.yml +++ b/.github/workflows/go.yml @@ -9,7 +9,7 @@ jobs: runs-on: ${{ matrix.os }} steps: - name: Set up Go 1.13 - uses: actions/setup-go@v1 + uses: actions/setup-go@v2 with: go-version: 1.13 id: go From 09cf542962a1e0f00e50e77552c2a1e5989cbd7f Mon Sep 17 00:00:00 2001 From: Koichi Shiraishi Date: Wed, 7 Oct 2020 01:53:36 +0900 Subject: [PATCH 2/4] github/workflows: hook also pull_request --- .github/workflows/go.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml index 6fbac02..8ed9981 100644 --- a/.github/workflows/go.yml +++ b/.github/workflows/go.yml @@ -1,5 +1,5 @@ name: Go -on: [push] +on: [push, pull_request] jobs: build: name: Test From 4271f208db12f564c0fb2a5518e08c68635377b4 Mon Sep 17 00:00:00 2001 From: Koichi Shiraishi Date: Wed, 7 Oct 2020 01:53:58 +0900 Subject: [PATCH 3/4] github/workflows: add 1.14 and 1.15 --- .github/workflows/go.yml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml index 8ed9981..c2d32cc 100644 --- a/.github/workflows/go.yml +++ b/.github/workflows/go.yml @@ -5,13 +5,14 @@ jobs: name: Test strategy: matrix: - os: [ubuntu-latest, windows-latest, macos-latest] + os: [ "ubuntu-latest", "windows-latest", "macos-latest" ] + go-version: [ "1.13", "1.14", "1.15" ] runs-on: ${{ matrix.os }} steps: - - name: Set up Go 1.13 + - name: Set up Go ${{ matrix.go-version }} uses: actions/setup-go@v2 with: - go-version: 1.13 + go-version: ${{ matrix.go-version }} id: go - name: Check out code into the Go module directory From fd28e427bc1b86f6edc75a064ac3977d0b1baafe Mon Sep 17 00:00:00 2001 From: Koichi Shiraishi Date: Wed, 7 Oct 2020 01:54:29 +0900 Subject: [PATCH 4/4] github/workflows: test also race build --- .github/workflows/go.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml index c2d32cc..db2ebbc 100644 --- a/.github/workflows/go.yml +++ b/.github/workflows/go.yml @@ -20,3 +20,6 @@ jobs: - name: Test run: go test -v ./ + + - name: Test with race detector + run: go test -v -race ./