This repository was archived by the owner on Jun 23, 2026. It is now read-only.
Repository navigation
114 lines (94 loc) · 2.3 KB
/
Copy pathbuild.yml
File metadata and controls
114 lines (94 loc) · 2.3 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
# Build & lint checks workflow
name: Build & Lint Checks
on:
workflow_dispatch:
pull_request:
push:
branches:
- main
permissions:
contents: read
jobs:
build_tip_of_tree_v12:
name: Build test (against tip-of-tree core main)
runs-on: ubuntu-latest
steps:
- name: Checkout experimentation plugin
uses: actions/checkout@v4
with:
path: main
- name: Checkout core Blockly
uses: actions/checkout@v4
with:
repository: 'google/blockly'
ref: 'main'
path: core-blockly
- name: Use Node.js 20.x
uses: actions/setup-node@v4
with:
node-version: 20.x
- name: NPM install
run: |
cd main
npm install
cd ..
cd core-blockly
npm install
cd ..
- name: Link latest Blockly main
run: |
cd core-blockly/packages/blockly
npm run package
cd dist
npm link
cd ../../../../main
npm link blockly
cd ..
- name: Verify build
run: |
cd main
npm run build
build:
name: Build test (against pinned v12)
# Don't run pinned version checks for PRs.
if: ${{ !github.base_ref }}
runs-on: ubuntu-latest
steps:
- name: Checkout experimentation plugin
uses: actions/checkout@v4
- name: Use Node.js 20.x
uses: actions/setup-node@v4
with:
node-version: 20.x
- name: NPM install
run: npm install
- name: Verify build
run: npm run build
lint:
name: Eslint check
timeout-minutes: 5
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Use Node.js 20.x
uses: actions/setup-node@v4
with:
node-version: 20.x
- name: NPM install
run: npm install
- name: Eslint check format
run: npm run lint
format:
name: Prettier check
timeout-minutes: 5
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Use Node.js 20.x
uses: actions/setup-node@v4
with:
node-version: 20.x
- name: NPM install
run: npm install
- name: Prettier check format
run: npm run format:check