Skip to content

NEW @W-15655525@ Fixing typo #2

NEW @W-15655525@ Fixing typo

NEW @W-15655525@ Fixing typo #2

Workflow file for this run

name: run-tests
on:
workflow_call:
inputs:
node-matrix:
description: "An array of node versions against which the tests should be run"
required: false
type: string
default: "[{version: 'lts/*', artifact: 'lts'}]"
target-branch:
description: "What branch should be checked out?"
required: false
type: string
# If no target branch is specified, just use the one we'd use normally.
default: ${{ github.sha }}
jobs:
unit-tests:
strategy:
# By default, if any job in a matrix fails, all other jobs are immediately canceled. This makes the jobs run
# to completion instead.
fail-fast: false
matrix:
node: ${{ fromJson(inputs.node-matrix) }}
os: [ubuntu-latest, windows-latest, macos-latest]
runs-on: ${{ matrix.os }}
steps:
# Check out the code
- uses: actions/checkout@v4
with:
ref: ${{ inputs.target-branch }}
# Make sure we're on the right version on Node
- uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
<<<<<<< Updated upstream

Check failure on line 36 in .github/workflows/run-tests.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/run-tests.yml

Invalid workflow file

You have an error in your yaml syntax on line 36
=======
- run: yarn
>>>>>>> Stashed changes
- run: yarn build
- run: yarn test
- run: yarn lint