From 804728ffd670868a0fbde83d85374c2fdd182966 Mon Sep 17 00:00:00 2001 From: Aleks Knezevic Date: Fri, 8 Nov 2024 21:27:08 +0000 Subject: [PATCH] Don't run tests unless pre-commit passes --- .github/on-pr.yml | 1 + .github/workflows/on-pr.yml | 1 + .github/workflows/on-push.yml | 1 + 3 files changed, 3 insertions(+) diff --git a/.github/on-pr.yml b/.github/on-pr.yml index 76a781f8..ed5ae1f8 100644 --- a/.github/on-pr.yml +++ b/.github/on-pr.yml @@ -13,5 +13,6 @@ jobs: uses: ./.github/workflows/spdx.yml secrets: inherit build-and-test: + needs: [pre-commit, spdx] uses: ./.github/workflows/build-and-test.yml secrets: inherit diff --git a/.github/workflows/on-pr.yml b/.github/workflows/on-pr.yml index 76a781f8..ed5ae1f8 100644 --- a/.github/workflows/on-pr.yml +++ b/.github/workflows/on-pr.yml @@ -13,5 +13,6 @@ jobs: uses: ./.github/workflows/spdx.yml secrets: inherit build-and-test: + needs: [pre-commit, spdx] uses: ./.github/workflows/build-and-test.yml secrets: inherit diff --git a/.github/workflows/on-push.yml b/.github/workflows/on-push.yml index 2d961e22..d3739ff2 100644 --- a/.github/workflows/on-push.yml +++ b/.github/workflows/on-push.yml @@ -13,5 +13,6 @@ jobs: uses: ./.github/workflows/spdx.yml secrets: inherit build-and-test: + needs: [pre-commit, spdx] uses: ./.github/workflows/build-and-test.yml secrets: inherit