From 4f8f514954d3026d74b11af5ff2e5cce34b80edf Mon Sep 17 00:00:00 2001 From: junya koyama Date: Wed, 16 Aug 2023 22:18:24 +0900 Subject: [PATCH 1/3] Add matrix-test with go 1.20 and go 1.21 Signed-off-by: junya koyama --- .github/workflows/test.yaml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml index 0d42963f..0f34d858 100644 --- a/.github/workflows/test.yaml +++ b/.github/workflows/test.yaml @@ -11,11 +11,14 @@ jobs: build: name: Linux runs-on: ubuntu-latest + strategy: + matrix: + go: [ '1.19', '1.20', '1.21' ] steps: - - name: Set up Go 1.19 + - name: Set up Go uses: actions/setup-go@v2 with: - go-version: '1.19' + go-version: ${{ matrix.go }} id: go - name: Check out code into the Go module directory uses: actions/checkout@v2 From dccbc5d23af782338eb589bdc7a844b146ce01cf Mon Sep 17 00:00:00 2001 From: junya koyama Date: Wed, 16 Aug 2023 22:20:46 +0900 Subject: [PATCH 2/3] Format test.yaml Signed-off-by: junya koyama --- .github/workflows/test.yaml | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml index 0f34d858..5fd0550a 100644 --- a/.github/workflows/test.yaml +++ b/.github/workflows/test.yaml @@ -1,5 +1,5 @@ name: test -on: +on: push: branches: - v3 @@ -13,14 +13,14 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - go: [ '1.19', '1.20', '1.21' ] + go: ['1.19', '1.20', '1.21'] steps: - - name: Set up Go - uses: actions/setup-go@v2 - with: - go-version: ${{ matrix.go }} - id: go - - name: Check out code into the Go module directory - uses: actions/checkout@v2 - - name: Test - run: "./test" + - name: Set up Go + uses: actions/setup-go@v2 + with: + go-version: ${{ matrix.go }} + id: go + - name: Check out code into the Go module directory + uses: actions/checkout@v2 + - name: Test + run: "./test" From 670837a4216214d89aa0c97d1063a911ae539a37 Mon Sep 17 00:00:00 2001 From: junya koyama Date: Wed, 16 Aug 2023 23:15:40 +0900 Subject: [PATCH 3/3] Bump GHA Testing Signed-off-by: junya koyama --- .github/workflows/test.yaml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml index 5fd0550a..e51e669d 100644 --- a/.github/workflows/test.yaml +++ b/.github/workflows/test.yaml @@ -15,12 +15,13 @@ jobs: matrix: go: ['1.19', '1.20', '1.21'] steps: + - name: Check out code into the Go module directory + uses: actions/checkout@v3 - name: Set up Go - uses: actions/setup-go@v2 + uses: actions/setup-go@v4 with: go-version: ${{ matrix.go }} + cache: false id: go - - name: Check out code into the Go module directory - uses: actions/checkout@v2 - name: Test run: "./test"