Skip to content

Test strategy

Test strategy #5

Workflow file for this run

name: Test strategy
on: workflow_dispatch
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix: ${{ fromJson("{\"test-group\":[1,2],\"node\":[14,16],\"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: '"{\"test-group\":'. Located at position 10 within expression: fromJson("{\"test-group\":[1,2],\"node\":[14,16],\"include\":[{\"node\":14,\"something\":\"else\"}]}") .github/workflows/test.yml (Line: 8, Col: 15): Unexpected value '${{ fromJson("{\"test-group\":[1,2],\"node\":[14,16],\"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 }}"