Skip to content

Update GitHub actions to the latest versions #375

Update GitHub actions to the latest versions

Update GitHub actions to the latest versions #375

Workflow file for this run

name: Build and test
on:
pull_request:
branches:
- main
jobs:
build_and_test:
name: Build and test
runs-on: ubuntu-20.04
strategy:
matrix:
node: [ 18, 20 ]
steps:
- name: Clone repository
uses: actions/checkout@v4
- name: Use Node.js ${{ matrix.node }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node }}
cache: npm
- name: Print Node.js and npm version
run: node --version && npm --version
- name: Install
run: npm ci
- name: Build
run: npm run build
- name: Test
run: npm test