From 32b875c1a8a691df0e459b51ae23ce7ec56750e2 Mon Sep 17 00:00:00 2001 From: Quentin Mc Gaw Date: Mon, 30 Dec 2024 17:20:32 +0100 Subject: [PATCH] Move mocks up to date as a prerequisite step to unit_test job --- .github/workflows/tests.yml | 16 ++++------------ 1 file changed, 4 insertions(+), 12 deletions(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 896b97c969..f2d1670197 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -54,6 +54,10 @@ jobs: run: echo "TIMEOUT=1200s" >> "$GITHUB_ENV" - run: go mod download shell: bash + - name: Mocks are up to date + run: | + ./scripts/mock.gen.sh + git diff --exit-code - run: ./scripts/build.sh shell: bash - run: ./scripts/build_test.sh @@ -179,18 +183,6 @@ jobs: if: always() with: name: load-tmpnet-data - mock_gen: - name: MockGen Check - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v4 - - uses: actions/setup-go@v4 - with: - go-version: ${{ env.min_go_version }} - - shell: bash - run: scripts/mock.gen.sh - - shell: bash - run: .github/workflows/check-clean-branch.sh test_build_image: name: Image build runs-on: ubuntu-latest