@@ -27,36 +27,13 @@ jobs:
2727 - uses : actions/checkout@v4
2828 with :
2929 fetch-depth : 0
30- - uses : pnpm/action-setup@v4
31- with :
32- run_install : false
33- - uses : actions/setup-node@v5
34- id : cache
35- with :
36- node-version-file : ' .node-version'
37- cache : ' pnpm'
38-
39- - run : pnpm install --frozen-lockfile
30+ token : ${{ secrets.GH_TOKEN }}
4031
41- - run : pnpm dlx nx-cloud start-ci-run --distribute-on=".nx/workflows/dynamic-changesets.yml" --stop-agents-after="e2e-ci" --with-env-vars="CODECOV_TOKEN"
42- - run : pnpm nx sync:check
43-
44- - name : Cache Playwright browsers
45- uses : actions/cache@v4
32+ - name : Setup Project
33+ uses : ./.github/actions/setup
4634 with :
47- path : ~/.cache/ms-playwright
48- key : ${{ runner.os }}-playwright-${{ hashFiles('**/pnpm-lock.yaml') }}
49- restore-keys : |
50- ${{ runner.os }}-playwright-
51-
52- - run : pnpm exec playwright install
35+ CODECOV_TOKEN : ${{ secrets.CODECOV_TOKEN }}
5336
54- - uses : nrwl/nx-set-shas@v4
55- # This line is needed for nx affected to work when CI is running on a PR
56- - run : git branch --track main origin/main
57-
58- - run : pnpm exec nx-cloud record -- nx format:check
59- - run : pnpm exec nx affected -t build typecheck lint test e2e-ci
6037 - run : npx nx-cloud fix-ci
6138 if : always()
6239
6542 directory : ./packages/
6643 token : ${{ secrets.CODECOV_TOKEN }}
6744
68- - uses : actions/upload-artifact@v4
69- if : ${{ !cancelled() }}
70- with :
71- name : playwright-report
72- path : |
73- **/.playwright
74- **/test-results
75- retention-days : 30
76-
7745 - name : Ensure builds run
7846 run : pnpm nx run-many -t build
7947 env :
0 commit comments