feat: update github workflows to install playwright in a separate job (#17070)

* feat: update github workflows to install playwright in a separate job

* Update .github/workflows/pr.yml

* Update .github/workflows/pr.yml

* Update .github/workflows/pr.yml

* Update .github/workflows/pr.yml

* Update .github/workflows/pr.yml

* Update .github/workflows/pr.yml

* Update .github/workflows/pr.yml

---------

Co-authored-by: Keith Williams <keithwillcode@gmail.com>
This commit is contained in:
Aditya Ghadge
2024-10-15 10:09:38 +00:00
committed by GitHub
co-authored by Keith Williams
parent 2acb5559dc
commit 0b3b268eed
2 changed files with 13 additions and 6 deletions
+13 -5
View File
@@ -97,6 +97,14 @@ jobs:
if: ${{ needs.changes.outputs.has-files-requiring-all-checks == 'true' }}
uses: ./.github/workflows/yarn-install.yml
install-playwright:
name: Install playwright
runs-on: buildjet-2vcpu-ubuntu-2204
needs: [changes, check-label, deps]
if: ${{ needs.check-label.outputs.run-e2e == 'true' && needs.changes.outputs.has-files-requiring-all-checks == 'true' }}
steps:
- uses: ./.github/actions/yarn-playwright-install
type-check:
name: Type check
needs: [changes, check-label, deps]
@@ -162,35 +170,35 @@ jobs:
e2e:
name: Tests
needs: [changes, check-label, build, build-api-v1, build-api-v2]
needs: [changes, check-label, build, build-api-v1, build-api-v2, install-playwright]
if: ${{ needs.check-label.outputs.run-e2e == 'true' && needs.changes.outputs.has-files-requiring-all-checks == 'true' }}
uses: ./.github/workflows/e2e.yml
secrets: inherit
e2e-api-v2:
name: Tests
needs: [changes, check-label, build, build-api-v1, build-api-v2]
needs: [changes, check-label, build, build-api-v1, build-api-v2, install-playwright]
if: ${{ needs.check-label.outputs.run-e2e == 'true' && needs.changes.outputs.has-files-requiring-all-checks == 'true' }}
uses: ./.github/workflows/e2e-api-v2.yml
secrets: inherit
e2e-app-store:
name: Tests
needs: [changes, check-label, build, build-api-v1, build-api-v2]
needs: [changes, check-label, build, build-api-v1, build-api-v2, install-playwright]
if: ${{ needs.check-label.outputs.run-e2e == 'true' && needs.changes.outputs.has-files-requiring-all-checks == 'true' }}
uses: ./.github/workflows/e2e-app-store.yml
secrets: inherit
e2e-embed:
name: Tests
needs: [changes, check-label, build, build-api-v1, build-api-v2]
needs: [changes, check-label, build, build-api-v1, build-api-v2, install-playwright]
if: ${{ needs.check-label.outputs.run-e2e == 'true' && needs.changes.outputs.has-files-requiring-all-checks == 'true' }}
uses: ./.github/workflows/e2e-embed.yml
secrets: inherit
e2e-embed-react:
name: Tests
needs: [changes, check-label, build, build-api-v1, build-api-v2]
needs: [changes, check-label, build, build-api-v1, build-api-v2, install-playwright]
if: ${{ needs.check-label.outputs.run-e2e == 'true' && needs.changes.outputs.has-files-requiring-all-checks == 'true' }}
uses: ./.github/workflows/e2e-embed-react.yml
secrets: inherit
-1
View File
@@ -15,4 +15,3 @@ jobs:
- uses: actions/checkout@v4
- uses: ./.github/actions/dangerous-git-checkout
- uses: ./.github/actions/yarn-install
- uses: ./.github/actions/yarn-playwright-install