diff --git a/.github/workflows/errcheck.yml b/.github/workflows/errcheck.yml index b06c33d..532c8ae 100644 --- a/.github/workflows/errcheck.yml +++ b/.github/workflows/errcheck.yml @@ -7,31 +7,8 @@ on: branches: [ master ] jobs: - build_go112_nomod: - name: 'go 1.12.x, GO111MODULE=off' - runs-on: ubuntu-latest - defaults: - run: - working-directory: ${{ env.GOPATH }}/src/github.com/${{ github.repository }} - env: - GO111MODULE: 'off' - GOPATH: ${{ github.workspace }} - steps: - - uses: actions/checkout@v2 - with: - path: ${{ env.GOPATH }}/src/github.com/${{ github.repository }} - - name: Set up Go - uses: actions/setup-go@v2 - with: - go-version: 1.12.17 - - name: Go Get - run: go get ./... - - name: Build - run: go build -v ./... - - name: Test - run: go test -v ./... - build_go112_mod: - name: 'go 1.12.x, GO111MODULE=on' + build_go112: + name: 'go 1.12.x' runs-on: ubuntu-latest env: GO111MODULE: 'on' @@ -45,31 +22,8 @@ jobs: run: go build -v ./... - name: Test run: go test -v ./... - build_go113_nomod: - name: 'go 1.13.x, GO111MODULE=off' - runs-on: ubuntu-latest - defaults: - run: - working-directory: ${{ env.GOPATH }}/src/github.com/${{ github.repository }} - env: - GO111MODULE: 'off' - GOPATH: ${{ github.workspace }} - steps: - - uses: actions/checkout@v2 - with: - path: ${{ env.GOPATH }}/src/github.com/${{ github.repository }} - - name: Set up Go - uses: actions/setup-go@v2 - with: - go-version: 1.13.15 - - name: Go Get - run: go get ./... - - name: Build - run: go build -v ./... - - name: Test - run: go test -v ./... - build_go113_mod: - name: 'go 1.13.x, GO111MODULE=on' + build_go113: + name: 'go 1.13.x' runs-on: ubuntu-latest env: GO111MODULE: 'on' @@ -83,31 +37,8 @@ jobs: run: go build -v ./... - name: Test run: go test -v ./... - build_go114_nomod: - name: 'go 1.14.x, GO111MODULE=off' - runs-on: ubuntu-latest - defaults: - run: - working-directory: ${{ env.GOPATH }}/src/github.com/${{ github.repository }} - env: - GO111MODULE: 'off' - GOPATH: ${{ github.workspace }} - steps: - - uses: actions/checkout@v2 - with: - path: ${{ env.GOPATH }}/src/github.com/${{ github.repository }} - - name: Set up Go - uses: actions/setup-go@v2 - with: - go-version: 1.14.12 - - name: Go Get - run: go get ./... - - name: Build - run: go build -v ./... - - name: Test - run: go test -v ./... - build_go114_mod: - name: 'go 1.14.x, GO111MODULE=on' + build_go114: + name: 'go 1.14.x' runs-on: ubuntu-latest env: GO111MODULE: 'on' @@ -121,31 +52,8 @@ jobs: run: go build -v ./... - name: Test run: go test -v ./... - build_go115_nomod: - name: 'go 1.15.x, GO111MODULE=off' - runs-on: ubuntu-latest - defaults: - run: - working-directory: ${{ env.GOPATH }}/src/github.com/${{ github.repository }} - env: - GO111MODULE: 'off' - GOPATH: ${{ github.workspace }} - steps: - - uses: actions/checkout@v2 - with: - path: ${{ env.GOPATH }}/src/github.com/${{ github.repository }} - - name: Set up Go - uses: actions/setup-go@v2 - with: - go-version: 1.15.6 - - name: Go Get - run: go get ./... - - name: Build - run: go build -v ./... - - name: Test - run: go test -v ./... - build_go115_mod: - name: 'go 1.15.x, GO111MODULE=on' + build_go115: + name: 'go 1.15.x' runs-on: ubuntu-latest env: GO111MODULE: 'on' @@ -159,8 +67,8 @@ jobs: run: go build -v ./... - name: Test run: go test -v ./... - build_go118_mod: - name: 'go 1.18.x, GO111MODULE=on' + build_go118: + name: 'go 1.18.x' runs-on: ubuntu-latest env: GO111MODULE: 'on'