Skip to content

chore(deps): update github/codeql-action digest to 46ed16d #891

chore(deps): update github/codeql-action digest to 46ed16d

chore(deps): update github/codeql-action digest to 46ed16d #891

Workflow file for this run

name: Build and Test
on:
push:
branches:
- '**'
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
if: ${{ !contains(github.event.head_commit.message, '[ci skip]') || github.event_name == 'workflow_dispatch' }}
strategy:
matrix:
node:
- '18'
- '19'
name: Build and test (Node ${{ matrix.node }})
steps:
- name: Check out the code
uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 # v3.5.3
- name: Set up Node.js environment
uses: actions/setup-node@e33196f7422957bea03ed53f6fbb155025ffc7b8 # v3.7.0
with:
node-version: ${{ matrix.node }}
registry-url: https://npm.pkg.github.com
- name: Update npm
run: npm i -g npm@latest
- name: Cache Node modules
uses: actions/cache@88522ab9f39a2ea568f7027eddc7d8d8bc9d59c8 # v3.3.1
env:
cache-name: cache-node-modules
with:
path: ~/.npm
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ matrix.node }}-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-build-${{ env.cache-name }}-${{ matrix.node }}-
${{ runner.os }}-build-${{ env.cache-name }}-
- name: Install dependencies
run: npm ci --ignore-scripts
env:
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Run postinstall scripts
run: npm rebuild && npm run prepare --if-present
- name: Run tests
run: npm test
env:
COLLECT_COVERAGE: "0"