Skip to content

Create test.yaml

Create test.yaml #1

Workflow file for this run

name: test
on:
pull_request:
branches:
- main
paths-ignore:
- 'site/**'
jobs:
preview:
runs-on: ubuntu-latest
steps:
- run: echo "{hello: 1, world: 2}" >> json.json

Check failure on line 14 in .github/workflows/test.yaml

View workflow run for this annotation

GitHub Actions / .github/workflows/test.yaml

Invalid workflow file

You have an error in your yaml syntax on line 14
- uses: actions/github-script@v7
with:
script: |
const json = await import('./json.json');
console.log(JSON.stringify(json, null, 2));