Skip to content

fix workflow

fix workflow #1134

Workflow file for this run

# This workflow will do a clean install of node dependencies, build the source code and run tests across different versions of node
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions

Check failure on line 3 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 3
name: Run Tests
on: [push, pull_request, workflow_call]
inputs:
build_script:
required: false
type: string
default: npm run build
test_script:
required: false
type: string
default: npm test
working_directory:
required: false
type: string
default: .
node_matrix:
required: false
type: string
default: '["14.x"]'
secrets:
NPM_TOKEN:
required: false
MAPBOX_API_KEY:
required: false
jobs:
tests:
runs-on: ubuntu-latest
defaults:
run:
working-directory: ${{ inputs.working_directory }}
strategy:
matrix:
node-version: ${{ fromJSON(inputs.node_matrix) }}
steps:
- uses: actions/checkout@v3
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}