diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml index 0d42963f..e51e669d 100644 --- a/.github/workflows/test.yaml +++ b/.github/workflows/test.yaml @@ -1,5 +1,5 @@ name: test -on: +on: push: branches: - v3 @@ -11,13 +11,17 @@ jobs: build: name: Linux runs-on: ubuntu-latest + strategy: + matrix: + go: ['1.19', '1.20', '1.21'] steps: - - name: Set up Go 1.19 - uses: actions/setup-go@v2 - with: - go-version: '1.19' - id: go - - name: Check out code into the Go module directory - uses: actions/checkout@v2 - - name: Test - run: "./test" + - name: Check out code into the Go module directory + uses: actions/checkout@v3 + - name: Set up Go + uses: actions/setup-go@v4 + with: + go-version: ${{ matrix.go }} + cache: false + id: go + - name: Test + run: "./test"