From 638427feb9cb3e1c0c4111d81c64b2f2318f90b9 Mon Sep 17 00:00:00 2001 From: Thomas Fargeix Date: Sun, 27 Oct 2024 17:50:18 +0100 Subject: [PATCH] Run test when creating release, not when publishing Avoid running the tests several times on the same tag --- .github/workflows/build-package.yml | 9 +-------- .github/workflows/prepare-release.yml | 11 ++++++++++- 2 files changed, 11 insertions(+), 9 deletions(-) diff --git a/.github/workflows/build-package.yml b/.github/workflows/build-package.yml index 232c624..87a1485 100644 --- a/.github/workflows/build-package.yml +++ b/.github/workflows/build-package.yml @@ -7,15 +7,8 @@ permissions: contents: read jobs: - check-linting: - uses: ./.github/workflows/check-linting.yml - - run-tests: - uses: ./.github/workflows/run-tests.yml - build: - name: Check and build project - needs: [check-linting, run-tests] + name: Build project and check package runs-on: "ubuntu-latest" steps: diff --git a/.github/workflows/prepare-release.yml b/.github/workflows/prepare-release.yml index 0a5797e..f8adf3e 100644 --- a/.github/workflows/prepare-release.yml +++ b/.github/workflows/prepare-release.yml @@ -9,12 +9,21 @@ permissions: contents: write jobs: + check-documentation: + uses: ./.github/workflows/check-documentation.yml + + check-linting: + uses: ./.github/workflows/check-linting.yml + + run-tests: + uses: ./.github/workflows/run-tests.yml + build-package: uses: ./.github/workflows/build-package.yml autorelease: name: Create Draft Release - needs: [build-package] + needs: [check-documentation, check-linting, run-tests, build-package] runs-on: "ubuntu-latest" steps: