Skip to content

Commit

Permalink
Fixed github action yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
gauravkuber committed Aug 31, 2024
1 parent e4ff26a commit bd4af1f
Showing 1 changed file with 11 additions and 7 deletions.
18 changes: 11 additions & 7 deletions .github/workflows/build-and-test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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 ./...

0 comments on commit bd4af1f

Please sign in to comment.