CI: fix Compiler Playground workflow (#2945)
Also renamed the workflow to make more sense when merged into the main React repo.
Jan Kassens committed
May 7, 2024 at 16:15 UTC
f4c12cc4a8b1ad7ad3c0a3cad3ecbf2f5f72e07b
1 file changed
+11
-3
.github/workflows/compiler-playground.yml
renamed
+11
-3
@@ -1,8 +1,16 @@
1
-name: Playground
1
+name: Compiler Playground
2
3
on:
4
push:
5
branches: [main]
6
+ pull_request:
7
+ paths:
8
+ - compiler/
9
+ - .github/workflows/compiler-playground.yml
10
+
11
+defaults:
12
+ run:
13
+ working-directory: compiler
14
15
jobs:
16
playground:
@@ -14,13 +22,13 @@ jobs:
22
with:
23
node-version: 18.x
24
cache: "yarn"
17
- cache-dependency-path: yarn.lock
25
+ cache-dependency-path: compiler/yarn.lock
26
- name: Restore cached node_modules
27
uses: actions/cache@v4
28
id: node_modules
29
with:
30
path: "**/node_modules"
23
- key: ${{ runner.arch }}-${{ runner.os }}-modules-${{ hashFiles('**/yarn.lock') }}
31
+ key: ${{ runner.arch }}-${{ runner.os }}-modules-${{ hashFiles('compiler/**/yarn.lock') }}
32
- run: yarn install --frozen-lockfile
33
- run: npx playwright install --with-deps chromium
34
- run: yarn workspace playground test