Provide a set of common build utils as part of Paima #589
Workflow file for this run
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: NodeJS Continuous Health Check | |
on: | |
push: | |
branches: [ master ] | |
paths-ignore: | |
- "documentation/**" | |
- "README.md" | |
- "errors.log" | |
pull_request: | |
branches: [ master ] | |
paths-ignore: | |
- "documentation/**" | |
- "README.md" | |
- "errors.log" | |
jobs: | |
node_ci: | |
runs-on: ${{ matrix.os }} | |
env: | |
NODE_CACHE: "npm" | |
strategy: | |
fail-fast: false | |
matrix: | |
os: [ubuntu-latest] | |
node: [18] | |
steps: | |
- | |
name: Check out repository | |
if: ${{ github.event_name == 'push' || github.event_name == 'pull_request' }} | |
uses: actions/checkout@v3 | |
- | |
name: Setup node env | |
uses: actions/setup-node@v3 | |
with: | |
node-version: ${{ matrix.node }} | |
check-latest: false | |
registry-url: https://registry.npmjs.org | |
# cache: ${{ env.NODE_CACHE }} | |
# cache-dependency-path: ${{ matrix.dir }}/package-lock.json | |
- | |
name: Cleanup for node > 16 | |
if: ${{ matrix.node!='16' }} | |
shell: bash -e -l {0} | |
run: | | |
sh wipe.sh keep-package-lock | |
npm i --no-audit | |
- | |
name: Build workspace | |
shell: bash -e -l {0} | |
run: | | |
npm ci --prefer-offline --no-audit | |
npm run --if-present build | |
npm run --if-present cilint |