Skip to content

Commit f3d3258

Browse files
authored
feat: add build tests for non-PRs that rely on pinned v12
1 parent 6aa3131 commit f3d3258

File tree

1 file changed

+50
-0
lines changed

1 file changed

+50
-0
lines changed

.github/workflows/build.yml

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,55 @@ permissions:
1212
contents: read
1313

1414
jobs:
15+
build_tip_of_tree_v12:
16+
name: Build test (against tip-of-tree core v12)
17+
runs-on: ubuntu-latest
18+
steps:
19+
- name: Checkout experimentation plugin
20+
uses: actions/checkout@v4
21+
with:
22+
path: main
23+
24+
- name: Checkout core Blockly
25+
uses: actions/checkout@v4
26+
with:
27+
repository: 'google/blockly'
28+
ref: 'rc/v12.0.0'
29+
path: core-blockly
30+
31+
- name: Use Node.js 20.x
32+
uses: actions/setup-node@v4
33+
with:
34+
node-version: 20.x
35+
36+
- name: NPM install
37+
run: |
38+
cd main
39+
npm install
40+
cd ..
41+
cd core-blockly
42+
npm install
43+
cd ..
44+
45+
- name: Link latest Blockly v12
46+
run: |
47+
cd core-blockly
48+
npm run package
49+
cd dist
50+
npm link
51+
cd ../../main
52+
npm link blockly
53+
cd ..
54+
55+
- name: Verify build
56+
run: |
57+
cd main
58+
npm run build
59+
1560
build:
61+
name: Build test (against pinned v12)
62+
# Don't run pinned version checks for PRs.
63+
if: ${{ !github.base_ref }}
1664
runs-on: ubuntu-latest
1765
steps:
1866
- name: Checkout experimentation plugin
@@ -57,6 +105,7 @@ jobs:
57105
npm run build
58106
59107
lint:
108+
name: Eslint check
60109
timeout-minutes: 5
61110
runs-on: ubuntu-latest
62111
steps:
@@ -74,6 +123,7 @@ jobs:
74123
run: npm run lint
75124

76125
format:
126+
name: Prettier check
77127
timeout-minutes: 5
78128
runs-on: ubuntu-latest
79129
steps:

0 commit comments

Comments
 (0)