Skip to content

chore(ci): update GitHub Actions and pin to full commit SHAs #91

chore(ci): update GitHub Actions and pin to full commit SHAs

chore(ci): update GitHub Actions and pin to full commit SHAs #91

Workflow file for this run

# This workflow will do a clean installation of node dependencies, cache/restore them, build the source code and run tests across different versions of node
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions
name: Node.js CI
on: [push, pull_request]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
include:
- node-version: 18.x
- node-version: 20.x
- node-version: 22.x
- node-version: 24.x
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v7.0.0
with:
node-version: ${{ matrix.node-version }}
cache: npm
cache-dependency-path: package-lock.json
- name: Install Dependencies On Node ${{ matrix.node-version }}
run: npm ci
- run: npm test
- name: Coverage On Node ${{ matrix.node-version }}
run:
npm run coverage
- name: Upload coverage to Codecov
uses: codecov/codecov-action@303a32d7a59b442fa8d48b6a1cc6825c09c847a5 # v7.1.1