[ACS-8660] Introduce daily CI cron workflow (#4055)

* [ACS-8660] Introduce daily CI cron workflow

* [ACS-8660] Rename workflow file

* [ACS-8660] Small fix

* [ACS-8660] Refine cron workflow param

* [ACS-8660] GHA input visibility fix

* [ACS-8660] GHA input fix
This commit is contained in:
MichalKinas
2024-08-27 07:34:47 +02:00
committed by GitHub
parent 1bd16a1553
commit ca3636a290
2 changed files with 45 additions and 1 deletions
+16 -1
View File
@@ -4,6 +4,13 @@ on:
pull_request:
types: [opened, synchronize, reopened]
branches: [master, develop]
workflow_call:
inputs:
cron-run:
description: 'Disables jobs which should not run during cron execution'
required: false
type: string
default: 'false'
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
@@ -26,6 +33,7 @@ env:
jobs:
lint:
if: ${{ inputs.cron-run == 'false' || inputs.cron-run == '' }}
name: 'lint'
runs-on: ubuntu-latest
steps:
@@ -84,7 +92,14 @@ jobs:
cache: 'npm'
- uses: ./.github/actions/before-install
- run: npm ci
- run: npm run affected:test -- --browsers=ChromeHeadless --watch=false $TEST_OPTS --base=origin/develop
- name: Test
if: ${{ inputs.cron-run == 'false' || inputs.cron-run == '' }}
run: npm run affected:test -- --browsers=ChromeHeadless --watch=false $TEST_OPTS --base=origin/develop
- name: Test all
if: ${{ inputs.cron-run == 'true' }}
run: npx nx run-many --target=test --browsers=ChromeHeadless --watch=false $TEST_OPTS --base=origin/develop
e2es-playwright:
needs: [lint, build, unit-tests]