From 5aab7e647d729cbc28e80b13a22a9dc6e32a0f9d Mon Sep 17 00:00:00 2001 From: David Robinson <14000840+khelwood@users.noreply.github.com> Date: Thu, 12 Mar 2026 09:35:39 +0000 Subject: [PATCH] add condition to github test action --- .github/workflows/test.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 7d6e8daa8..4dd1e0c16 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -11,6 +11,7 @@ on: jobs: cypress: + if: github.event_name != 'push' || !contains(github.event.head_commit.message, '[skip tests]') name: Run cypress tests runs-on: ubuntu-latest container: @@ -45,6 +46,7 @@ jobs: path: cypress/screenshots jest: + if: github.event_name != 'push' || !contains(github.event.head_commit.message, '[skip tests]') name: Run unit tests runs-on: ubuntu-latest steps: @@ -60,6 +62,7 @@ jobs: run: yarn test:unit prettier: + if: github.event_name != 'push' || !contains(github.event.head_commit.message, '[skip tests]') name: Check format with prettier runs-on: ubuntu-latest steps: @@ -75,6 +78,7 @@ jobs: run: yarn prettier --check . eslint: + if: github.event_name != 'push' || !contains(github.event.head_commit.message, '[skip tests]') name: Lint with ESLint runs-on: ubuntu-latest steps: