Skip to content

zizmor fixes (round 1) #3

zizmor fixes (round 1)

zizmor fixes (round 1) #3

Workflow file for this run

name: CI
on: pull_request
jobs:
test:
name: Test
runs-on: ubuntu-20.04
timeout-minutes: 10
steps:
- name: Checkout
uses: actions/checkout@v4
with:
persist-credentials: false
- name: Get Node.js version
id: nvmrc
run: echo "::set-output name=version::$(cat .nvmrc)"
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: ${{ steps.nvmrc.outputs.version }}
- name: Node.js npm cache
id: npm-cache
uses: actions/cache@v4
with:
path: |
~/.npm
**/node_modules
key: ${{ runner.os }}-node-${{ steps.nvmrc.outputs.version }}-${{ hashFiles('package.json', 'package-lock.json') }}
- name: Install Node.js packages
if: steps.npm-cache.outputs.cache-hit != 'true'
run: |
npm ci
- name: Run tests
run: |
npm run build