Skip to content

use actions/checkout@v4 #577

use actions/checkout@v4

use actions/checkout@v4 #577

Workflow file for this run

name: Run tests
on:
push:
pull_request:
workflow_dispatch:
schedule:
- cron: '0 0 * * *' # every day at midnight
concurrency:
group: ${{ github.ref }}
cancel-in-progress: true
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [18.x, 20.x, latest]
name: Node ${{ matrix.node-version }}
steps:
- name: Git checkout
uses: actions/checkout@v4
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
cache: 'npm'
cache-dependency-path: '**/package.json'
- name: Install dependencies
run: npm install
- name: Run tests
run: npm test
env:
CI: true