diff --git a/.github/workflows/go.yaml b/.github/workflows/go.yaml index 0076dc3..31d04e8 100644 --- a/.github/workflows/go.yaml +++ b/.github/workflows/go.yaml @@ -2,47 +2,32 @@ name: Go on: push: - branches: [ master ] + branches: [master] pull_request: - branches: [ master ] + branches: [master] jobs: - build: runs-on: ubuntu-latest strategy: matrix: - go: - - "1.8" - - "1.9" - - "1.10" - - "1.11" - - "1.12" - - "1.13" - - "1.14" - - "1.15" - name: Build Go ${{ matrix.go }} + go-version: + - oldstable + - stable steps: - - - name: Set up Go 1.x - uses: actions/setup-go@v2 + - uses: actions/checkout@v4 + - name: Setup Go ${{ matrix.go-version }} + uses: actions/setup-go@v5 with: - go-version: ^${{ matrix.go }} - - - name: Check out code into the Go module directory - uses: actions/checkout@v2 - - - name: Get dependencies - run: go get -v -t -d ./... - + go-version: ${{ matrix.go-version }} + - name: Install Dependencies + run: go get . - name: Build run: go build -v ./... - - name: Test amd64 run: go test -v ./... env: GOARCH: amd64 - - name: Test 386 run: go test -v ./... env: