forked from TurboWarp/scratch-gui
-
Notifications
You must be signed in to change notification settings - Fork 1
50 lines (38 loc) · 1.11 KB
/
node.js.yml
File metadata and controls
50 lines (38 loc) · 1.11 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
name: CI
on:
push:
pull_request:
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up JDK 11
uses: actions/setup-java@v3
with:
java-version: '11'
distribution: 'temurin'
- name: Install Node.js
uses: actions/setup-node@v4
with:
node-version: 20
cache: npm
- name: Install Dependencies
run: npm install --ignore-scripts --legacy-peer-deps
- name: Build scratch-blocks manually
run: |
cd node_modules/scratch-blocks
npm install --no-save google-closure-compiler
export PATH=$PWD/node_modules/.bin:$PATH
echo "Checking compiler path..."
ls -l $PWD/node_modules/.bin/google-closure-compiler || echo "Compiler not found!"
which google-closure-compiler || echo "Command not in PATH"
node universal-python.js build.py
- name: Install microbit
run: npm install
- name: Build GUI
run: |
npm run build
- name: Run Tests
run: npm run test:unit