Skip to content

Commit

Permalink
Remove GO111MODULE: 'off' variantes from CI workflow (#221)
Browse files Browse the repository at this point in the history
  • Loading branch information
kisielk authored Jan 11, 2023
1 parent a3c6ea7 commit c2c614f
Showing 1 changed file with 10 additions and 102 deletions.
112 changes: 10 additions & 102 deletions .github/workflows/errcheck.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand All @@ -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'
Expand All @@ -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'
Expand All @@ -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'
Expand All @@ -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'
Expand Down

0 comments on commit c2c614f

Please sign in to comment.