diff --git a/.github/workflows/build-and-test.yaml b/.github/workflows/build-and-test.yaml index 7ffaf62..cb83251 100644 --- a/.github/workflows/build-and-test.yaml +++ b/.github/workflows/build-and-test.yaml @@ -13,16 +13,20 @@ jobs: build: runs-on: ubuntu-latest - strategy: matrix: - go-version: 1.17 + go-version: [ '1.17', '1.19' , '1.20' ] steps: - - name: Set up Go - uses: actions/setup-go@v3 + - uses: actions/checkout@v4 + - name: Set up Go ${{ matrix.go-version }} + uses: actions/setup-go@v5 with: go-version: ${{ matrix.go-version }} - - name: Check out code - uses: actions/checkout@v2 - - name: Test + - name: Display Go version + run: go version + - name: Install dependencies + run: go mod download + - name: Build + run: go build -v ./... + - name: Test with the Go CLI run: go test ./...