Skip to content

upgrades to newer nodejs modules, adding github action #1

upgrades to newer nodejs modules, adding github action

upgrades to newer nodejs modules, adding github action #1

name: build-and-test
on:
pull_request:
paths-ignore:
- '**.md'
push:
paths-ignore:
- '**.md'
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
steps:
- uses: actions/checkout@v2
- name: Setup node 12
uses: actions/setup-node@v2
with:
node-version: [ 16, 18, 20 ]

Check failure on line 22 in .github/workflows/build-and-test.yml

View workflow run for this annotation

GitHub Actions / build-and-test

Invalid workflow file

The workflow is not valid. .github/workflows/build-and-test.yml (Line: 22, Col: 25): A sequence was not expected
cache: npm
- run: npm test
- run: npm run build