Skip to content
This repository has been archived by the owner on Feb 22, 2024. It is now read-only.

Node

Node #856

Workflow file for this run

name: Node
on:
push:
branches:
- main
- ci/**
pull_request:
branches:
- main
workflow_dispatch:
schedule:
- cron: "0 0 * * *"
jobs:
ga-test:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: ["lts/*", "latest"]
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/
steps:
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
# https://github.com/actions/setup-node/blob/main/docs/advanced-usage.md#check-latest-version
node-version: ${{ matrix.node-version }}
check-latest: true
cache: "npm"
- run: node --version
- run: |
echo "Node (${{ matrix.node-version }}): $(node --version)" >> $GITHUB_STEP_SUMMARY
- run: npm ci
- run: npm test
- run: npm run lint