Skip to content

build-and-test

build-and-test #54

Workflow file for this run

name: build-and-test
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
schedule:
- cron: '0 1 9 * *'
jobs:
build:
runs-on: ubuntu-20.04
strategy:
matrix:
node-version: [20.x, 18.x]
steps:
- uses: actions/checkout@v4
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
cache: 'npm'
- run: npm ci
- run: npm run build --if-present
- run: npm test