docs: add Action comment screenshot to README #38
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: CI | |
| on: | |
| push: | |
| branches: [main] | |
| pull_request: | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - uses: actions/setup-node@v6 | |
| with: | |
| node-version: 24 | |
| - run: npm install | |
| - run: npm run build | |
| - name: Run unit tests | |
| run: npm test | |
| - name: Lint bad-ticket (expect fail) | |
| run: | | |
| set +e | |
| node dist/cli.js check examples/tickets/bad-ticket.json | |
| code=$? | |
| if [ $code -ne 1 ]; then | |
| echo "Expected exit 1 for bad-ticket, got $code" && exit 1 | |
| fi | |
| - name: Lint good-ticket (expect pass) | |
| run: node dist/cli.js check examples/tickets/good-ticket.json |