Skip to content

fix workflow file matrix #3

fix workflow file matrix

fix workflow file matrix #3

Workflow file for this run

name: Run tests
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
test-runner:
name: test runner
matrix-strategy:

Check failure on line 14 in .github/workflows/run-tests.yaml

View workflow run for this annotation

GitHub Actions / Run tests

Invalid workflow file

The workflow is not valid. .github/workflows/run-tests.yaml (Line: 14, Col: 5): Unexpected value 'matrix-strategy'
strategy:
matrix:
version: [18.18, 20.18]
runs-on: ubuntu-latest
permissions:
contents: read
steps:
- name: checkout code
uses: actions/checkout@v4
- name: setup node
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.version }}
- name: initialize deps
run: npm install
- name: run tests
run: npm run test