ci: Run Frontend tests on master only on node 20 (no-changelog) (#12833)
Some checks are pending
Test Master / install-and-build (push) Waiting to run
Test Master / Unit tests (18.x) (push) Blocked by required conditions
Test Master / Unit tests (20.x) (push) Blocked by required conditions
Test Master / Unit tests (22.4) (push) Blocked by required conditions
Test Master / Lint (push) Blocked by required conditions
Test Master / Notify Slack on failure (push) Blocked by required conditions

This commit is contained in:
कारतोफ्फेलस्क्रिप्ट™ 2025-01-24 16:33:00 +01:00 committed by GitHub
parent a197fbb21b
commit 31281a3f6b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 12 additions and 0 deletions

View file

@ -48,6 +48,7 @@ jobs:
cacheKey: ${{ github.sha }}-base:build
collectCoverage: ${{ matrix.node-version == '20.x' }}
ignoreTurboCache: ${{ matrix.node-version == '20.x' }}
skipFrontendTests: ${{ matrix.node-version != '20.x' }}
secrets:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}

View file

@ -12,6 +12,11 @@ on:
description: 'PR number to run tests for.'
required: false
type: number
skipFrontendTests:
description: 'Skip Frontend tests'
required: false
default: false
type: boolean
jobs:
prepare:
@ -37,3 +42,4 @@ jobs:
uses: ./.github/workflows/units-tests-reusable.yml
with:
ref: ${{ needs.prepare.outputs.branch }}
skipFrontendTests: ${{ inputs.skipFrontendTests }}

View file

@ -26,6 +26,10 @@ on:
required: false
default: false
type: boolean
skipFrontendTests:
required: false
default: false
type: boolean
secrets:
CODECOV_TOKEN:
description: 'Codecov upload token.'
@ -74,6 +78,7 @@ jobs:
run: pnpm test:nodes
- name: Test Frontend
if: ${{ !inputs.skipFrontendTests }}
run: pnpm test:frontend
- name: Upload coverage to Codecov