Update GitHub actions to the latest versions #375
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |