File tree Expand file tree Collapse file tree 3 files changed +54
-6
lines changed
Expand file tree Collapse file tree 3 files changed +54
-6
lines changed Original file line number Diff line number Diff line change 7171 - name : Require changeset to be present in PR
7272 if : github.event.pull_request.user.login != 'dependabot[bot]'
7373 run : pnpm changeset status --since origin/main
74+
75+ compiler-e2e :
76+ timeout-minutes : 60
77+ runs-on : ubuntu-latest
78+ steps :
79+ - name : Checkout
80+ uses : actions/checkout@v4
81+ with :
82+ ref : ${{github.event.pull_request.head.sha}}
83+ fetch-depth : 0
84+
85+ - name : Use Node.js
86+ uses : actions/setup-node@v6
87+ with :
88+ node-version : " 22"
89+
90+ - name : Install pnpm
91+ uses : pnpm/action-setup@v4
92+ with :
93+ version : 9.12.3
94+
95+ - name : Configure pnpm cache
96+ id : pnpm-cache
97+ run : echo "STORE_PATH=$(pnpm store path)" >> $GITHUB_OUTPUT
98+ - uses : actions/cache@v3
99+ with :
100+ path : ${{ steps.pnpm-cache.outputs.STORE_PATH }}
101+ key : ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
102+ restore-keys : |
103+ ${{ runner.os }}-pnpm-store-
104+
105+ - name : Install dependencies
106+ run : pnpm install
107+
108+ - name : Install Playwright Browsers
109+ run : pnpm exec playwright install --with-deps
110+ working-directory : packages/new-compiler
111+
112+ - name : Configure Turbo cache
113+ uses : dtinth/setup-github-actions-caching-for-turbo@v1
114+
115+ - name : Run E2E tests
116+ run : pnpm turbo run test:e2e --filter=./packages/new-compiler
Original file line number Diff line number Diff line change 123123 "clean" : " rm -rf build" ,
124124 "test" : " vitest --run" ,
125125 "test:watch" : " vitest -w" ,
126- "test:prepare" : " pnpm build && tsx tests/helpers/prepare-fixtures.ts" ,
127- "test:e2e" : " playwright test --reporter=list " ,
128- "test:e2e:next" : " playwright test --grep next --reporter=list " ,
129- "test:e2e:vite" : " playwright test --grep vite --reporter=list " ,
130- "test:e2e:shared" : " playwright test tests/e2e/shared --reporter=list " ,
126+ "test:e2e: prepare" : " tsx tests/helpers/prepare-fixtures.ts" ,
127+ "test:e2e" : " playwright test" ,
128+ "test:e2e:next" : " playwright test --grep next" ,
129+ "test:e2e:vite" : " playwright test --grep vite" ,
130+ "test:e2e:shared" : " playwright test tests/e2e/shared" ,
131131 "test:e2e:headed" : " playwright test --headed" ,
132132 "test:e2e:ui" : " playwright test --ui" ,
133133 "test:e2e:debug" : " playwright test --debug" ,
Original file line number Diff line number Diff line change 1717 " ^build"
1818 ]
1919 },
20+ "test:e2e" : {
21+ "dependsOn" : [
22+ " ^build"
23+ ]
24+ },
2025 "deploy" : {
2126 "dependsOn" : [
2227 " build" ,
2530 ]
2631 }
2732 }
28- }
33+ }
You can’t perform that action at this time.
0 commit comments