fix: update GitHub Actions with correct Node.js, submodules, and working CI build #402
Workflow file for this run
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: Build On Pull Request | |
on: | |
pull_request: | |
branches: [ "master", "develop" ] | |
jobs: | |
Build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code with submodule | |
uses: actions/checkout@v3 | |
with: | |
ref: ${{ github.event.pull_request.head.ref }} | |
repository: ${{ github.event.pull_request.head.repo.full_name }} | |
submodules: true | |
fetch-depth: 0 | |
- name: Update submodules | |
run: | | |
git submodule init | |
git submodule update --recursive | |
- name: Setup JDK 17 | |
uses: actions/setup-java@v2 | |
with: | |
java-version: 17 | |
distribution: 'adopt' | |
- name: Set up Node.js | |
uses: actions/setup-node@v2 | |
with: | |
node-version: 18 | |
- name: Build with NPM and Maven | |
run: | | |
npm config set legacy-peer-deps true | |
npm install -g @angular/cli | |
npm install [email protected] --save-dev | |
npm install [email protected] | |
npm install node-sass | |
npm install --force | |
npm run build-ci |