fix: 補上 SSE error 事件的 message 提取路徑 (#25) #15
Workflow file for this run
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: test | |
| on: | |
| push: | |
| branches: [main] | |
| pull_request: | |
| workflow_dispatch: | |
| permissions: | |
| contents: read | |
| jobs: | |
| shellcheck-bats: | |
| runs-on: ubuntu-latest | |
| defaults: | |
| run: | |
| working-directory: plugins/parallel-ai-agents | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Install bats | |
| run: sudo apt-get update && sudo apt-get install -y bats | |
| # shellcheck 已預裝在 ubuntu-latest runner | |
| - name: shellcheck | |
| run: shellcheck bin/pai-build-diff bin/pai-parse-verdict bin/pai-iter-commit | |
| - name: py_compile | |
| run: python3 -m py_compile bin/pai-parse-lens-csv | |
| - name: bats | |
| run: bats test/ | |
| - name: node tests | |
| run: for t in test/*.test.mjs; do echo "$t"; node "$t"; done |