feat: postmortem findings を原因分類でグルーピング #535
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: cekernel tests | |
| on: | |
| push: | |
| branches: [main] | |
| pull_request: | |
| permissions: | |
| contents: read | |
| pull-requests: read | |
| jobs: | |
| changes: | |
| runs-on: ubuntu-latest | |
| outputs: | |
| cekernel: ${{ steps.filter.outputs.cekernel }} | |
| steps: | |
| - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6 | |
| - uses: dorny/paths-filter@9d7afb8d214ad99e78fbd4247752c4caed2b6e4c # v4 | |
| id: filter | |
| with: | |
| filters: | | |
| cekernel: | |
| - 'scripts/**' | |
| - 'agents/**' | |
| - 'skills/**' | |
| - 'tests/**' | |
| - 'envs/**' | |
| - 'docs/**' | |
| - 'config/**' | |
| - '.github/workflows/cekernel-tests.yml' | |
| test: | |
| needs: changes | |
| if: needs.changes.outputs.cekernel == 'true' | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6 | |
| - name: Run cekernel tests | |
| run: bash tests/run-tests.sh | |
| # Ruleset required status check (reports success even when test is skipped) | |
| status: | |
| name: cekernel tests | |
| needs: [changes, test] | |
| if: always() | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Check status | |
| run: | | |
| if [ "${{ needs.test.result }}" == "failure" ]; then | |
| echo "Test job failed" | |
| exit 1 | |
| fi | |
| echo "cekernel tests passed (test skipped or succeeded)" |