diff --git a/.github/workflows/build-integration.yml b/.github/workflows/build-integration.yml index 5953190..aa03481 100644 --- a/.github/workflows/build-integration.yml +++ b/.github/workflows/build-integration.yml @@ -1,4 +1,8 @@ name: build-integration + +env: + GO_VERSION: '1.17.3' + on: pull_request: types: [ opened, reopened, synchronize ] @@ -20,7 +24,7 @@ jobs: - uses: actions/checkout@v3.1.0 - uses: actions/setup-go@v3 with: - go-version: 1.17.3 + go-version: ${{ env.GO_VERSION }} - run: make test rubocop: @@ -38,7 +42,7 @@ jobs: - uses: actions/checkout@v3.1.0 - uses: actions/setup-go@v3 with: - go-version: 1.17.3 + go-version: ${{ env.GO_VERSION }} - run: go mod tidy - run: | if ! git diff --exit-code -- go.mod go.sum; then @@ -51,7 +55,7 @@ jobs: - uses: actions/checkout@v3.1.0 - uses: actions/setup-go@v3 with: - go-version: 1.17.3 + go-version: ${{ env.GO_VERSION }} - run: go mod download - run: env GOPROXY=off go build -mod=readonly ./... @@ -61,7 +65,7 @@ jobs: - uses: actions/checkout@v3.1.0 - uses: actions/setup-go@v3 with: - go-version: 1.17.3 + go-version: ${{ env.GO_VERSION }} - name: Build linux binary run: make build-production - uses: ruby/setup-ruby@v1