Skip to content

Commit

Permalink
fix: skip and exit (TradeTrust#777)
Browse files Browse the repository at this point in the history
  • Loading branch information
simboonlong authored Jun 21, 2023
1 parent fcf597d commit 29edc3a
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 8 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/lighthouse.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
name: Lighthouse Report
name: Lighthouse

on: [push]

jobs:
lhci:
if: ${{ !contains(github.event.head_commit.message, '[skip test]') }}
name: Lighthouse
name: Lighthouse Desktop
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/lint_and_unit_test.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Lint & Test
name: Test

on: [push]

Expand All @@ -18,3 +18,5 @@ jobs:
- name: Test
if: ${{ !contains(github.event.head_commit.message, '[skip test]') }}
run: npm run test
- name: Build
run: npm run build:prod # this MUST be run to ensure production site will be built without errors
5 changes: 2 additions & 3 deletions .github/workflows/synpress.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@ name: Synpress
on: [push]

jobs:
e2e:
synpress:
if: ${{ !contains(github.event.head_commit.message, '[skip test]') }}
# https://github.com/drptbl/synpress-setup-example/blob/1d980157ef343de54f786e1115e1da590f1ba1d1/.github/workflows/e2e.yml#L49-L102
name: Synpress Tests
name: Synpress e2e Test
runs-on: ubuntu-latest
steps:
- name: Checkout
Expand All @@ -24,4 +24,3 @@ jobs:
${{ runner.os }}-buildx-
- name: Run e2e tests
run: docker-compose up --build --exit-code-from synpress

6 changes: 4 additions & 2 deletions .github/workflows/testcafe.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: Testcafe
on: [push]

jobs:
test:
testcafe:
name: Testcafe e2e Test
runs-on: ubuntu-latest
steps:
Expand All @@ -12,12 +12,14 @@ jobs:
with:
node-version: "14"
- name: Install Packages
if: ${{ !contains(github.event.head_commit.message, '[skip test]') }}
run: npm ci
- name: Build
if: ${{ !contains(github.event.head_commit.message, '[skip test]') }}
run: npm run build:test
- name: Integration - testcafe
id: testcafe
if: ${{ !contains(github.event.head_commit.message, '[skip test]') }}
id: testcafe
run: npm run integration:testcafe:ci
- name: Upload Artifact
if: ${{ failure() && steps.testcafe.outcome == 'failure' }}
Expand Down

0 comments on commit 29edc3a

Please sign in to comment.