Skip to content

Commit 3a19cfc

Browse files
authored
Merge pull request #1151 from sanger/allow_skip_tests
Allow skipping of tests with [skip tests]
2 parents a558658 + a64941f commit 3a19cfc

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

.github/workflows/test.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ on:
1111

1212
jobs:
1313
cypress:
14+
if: github.event_name != 'push' || !contains(github.event.head_commit.message, '[skip tests]')
1415
name: Run cypress tests
1516
runs-on: ubuntu-latest
1617
container:
@@ -45,6 +46,7 @@ jobs:
4546
path: cypress/screenshots
4647

4748
jest:
49+
if: github.event_name != 'push' || !contains(github.event.head_commit.message, '[skip tests]')
4850
name: Run unit tests
4951
runs-on: ubuntu-latest
5052
steps:
@@ -60,6 +62,7 @@ jobs:
6062
run: yarn test:unit
6163

6264
prettier:
65+
if: github.event_name != 'push' || !contains(github.event.head_commit.message, '[skip tests]')
6366
name: Check format with prettier
6467
runs-on: ubuntu-latest
6568
steps:
@@ -75,6 +78,7 @@ jobs:
7578
run: yarn prettier --check .
7679

7780
eslint:
81+
if: github.event_name != 'push' || !contains(github.event.head_commit.message, '[skip tests]')
7882
name: Lint with ESLint
7983
runs-on: ubuntu-latest
8084
steps:

0 commit comments

Comments
 (0)