Node20 (#104) #246
This file contains 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-test' | |
on: # rebuild any PRs and main branch changes | |
pull_request: | |
push: | |
branches: | |
- master | |
- 'releases/*' | |
jobs: | |
build: | |
name: Build and test | |
runs-on: ubuntu-latest | |
timeout-minutes: 30 | |
env: | |
NX_CLOUD_ACCESS_TOKEN: ${{ secrets.NX_TOKEN }} | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-python@v4 | |
with: | |
python-version: '3.10' | |
- run: node -v | |
- run: npm -v | |
- run: python --version | |
- name: Cache node modules | |
id: cache-npm | |
uses: actions/cache@v2 | |
with: | |
# npm cache files are stored in `~/.npm` on Linux/macOS | |
path: | | |
~/.npm | |
**/node_modules | |
key: ${{ runner.os }}-build-${{ hashFiles('package-lock.json') }} | |
restore-keys: | | |
${{ runner.os }}-build- | |
- if: ${{ steps.cache-npm.outputs.cache-hit == 'false' }} | |
name: List the state of node modules | |
continue-on-error: true | |
run: npm list | |
- run: npm install | |
- run: npm run compile | |
- run: npm link | |
- run: npm run generate | |
- run: npm run dockerBuild | |
- run: npm test |