From 26eb71e577459156907aba6e2c4c5966e1995c0a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alo=C3=AFs=20Micard?= Date: Mon, 3 Jul 2023 08:20:17 +0200 Subject: [PATCH] Reorganise CI --- .github/workflows/ci.yml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index bdcf326..04463fa 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -38,13 +38,14 @@ jobs: run: | go get -v github.com/golang/mock/mockgen@v1.4.4 + - name: Generate mock file + run: go generate -v ./... + - name: Lint source code run: go vet -v ./... - name: Run Tests - run: | - go generate ./... - go test -race --coverprofile=coverage.coverprofile --covermode=atomic -v ./... + run: go test -race --coverprofile=coverage.coverprofile --covermode=atomic -v ./... - name: Update go report card if: success() && matrix.os == 'ubuntu-latest'