Skip to content

Test strategy

Test strategy #6

Workflow file for this run

name: Test strategy
on: workflow_dispatch
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix: ${{ fromJson("{\"include\":[{\"node\":14,\"something\":\"else\"}]}") }}

Check failure on line 8 in .github/workflows/test.yml

View workflow run for this annotation

GitHub Actions / Test strategy

Invalid workflow file

The workflow is not valid. .github/workflows/test.yml (Line: 8, Col: 15): Unexpected symbol: '"{\"include\":'. Located at position 10 within expression: fromJson("{\"include\":[{\"node\":14,\"something\":\"else\"}]}") .github/workflows/test.yml (Line: 8, Col: 15): Unexpected value '${{ fromJson("{\"include\":[{\"node\":14,\"something\":\"else\"}]}") }}'
steps:
- run: echo "Mock test logs ${{ strategy.job-index }}"
- run: echo "Mock test logs ${{ matrix.test-group }} ${{ matrix.node }} ${{ matrix.something }}"