diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml index e7f09c6..86ae3ca 100644 --- a/.github/workflows/go.yml +++ b/.github/workflows/go.yml @@ -13,16 +13,18 @@ jobs: build: runs-on: ubuntu-latest + strategy: + matrix: + go-version: [ '1.19', '1.20', '1.21' ] steps: - - uses: actions/checkout@v3 - - - name: Set up Go - uses: actions/setup-go@v3 + - uses: actions/checkout@v4 + - name: Setup Go ${{ matrix.go-version }} + uses: actions/setup-go@v4 with: - go-version: 1.19 - + go-version: ${{ matrix.go-version }} + - name: Display Go version + run: go version - name: Build run: go mod init github.com/lqs/sqlingo && go mod tidy && go build -v . - - name: Test run: go test -v .