Merge pull request #3 from RyaninCn11/patch-1 #53
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 |