diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml index ea9c0f95..50f5582a 100644 --- a/.github/workflows/test.yaml +++ b/.github/workflows/test.yaml @@ -1,20 +1,34 @@ --- name: test -on: - pull_request: - types: [closed] - pull_request_review: - types: [submitted] +on: pull_request jobs: test: - if: | - endsWith(github.event.pull_request.user.login, '[bot]') && - ((github.event_name == 'pull_request_review' && github.event.review.state == 'approved') || - github.event_name == 'pull_request') runs-on: ubuntu-24.04 - timeout-minutes: 15 - permissions: - pull-requests: write - contents: read + timeout-minutes: 5 + permissions: {} + if: false + strategy: + fail-fast: false + matrix: + target: + - foo + - bar steps: - - uses: suzuki-shunsuke/notify-bot-pr-event-action@pr/1 + - run: | + if test "$TARGET" != "foo"; then + exit 1 + fi + sleep 5 + env: + TARGET: ${{ matrix.target }} + + label: + runs-on: ubuntu-24.04 + timeout-minutes: 5 + needs: [test] + permissions: {} + if: always() + steps: + - run: echo "$RESULT" + env: + RESULT: ${{ needs.test.result }}