From c758437a8a727cd0b3e977cf46794cf61516af54 Mon Sep 17 00:00:00 2001 From: Ole-Martin Bratteng <1681525+omBratteng@users.noreply.github.com> Date: Thu, 21 Oct 2021 14:29:57 +0200 Subject: [PATCH] ci: fix non-failing windows test when it should fail (#526) * chore: make `continuous-integration.yml` match `release.yml` workflow * fix: move `go vet` to separate step --- .github/workflows/continuous-integration.yaml | 31 ++++++++++++------- 1 file changed, 19 insertions(+), 12 deletions(-) diff --git a/.github/workflows/continuous-integration.yaml b/.github/workflows/continuous-integration.yaml index 1d23291..5ae3cf7 100644 --- a/.github/workflows/continuous-integration.yaml +++ b/.github/workflows/continuous-integration.yaml @@ -12,18 +12,25 @@ jobs: go-version: [1.16.x, 1.17.x] platform: [ubuntu-latest, macos-latest, windows-latest] runs-on: ${{ matrix.platform }} + env: + GO111MODULE: on steps: - - name: Install Matrix Go - uses: actions/setup-go@v2.1.4 - with: - go-version: ${{ matrix.go-version }} + - + name: Checkout code + uses: actions/checkout@v2.3.5 - - name: Checkout code - uses: actions/checkout@v2.3.5 + - + name: Install Go + uses: actions/setup-go@v2.1.4 + with: + go-version: ${{ matrix.go-version }} - - name: Test code - env: - GO111MODULE: on - run: | - go test ./pkg/... - go vet ./pkg/... + - + name: Test code + run: | + go test ./pkg/... + + - + name: Vet code + run: | + go vet ./pkg/...