From d90d93e41c4f551c63302e6fa4e146cee093109c Mon Sep 17 00:00:00 2001 From: Mogyuchi Date: Fri, 21 Jun 2024 05:04:14 +0900 Subject: [PATCH] ci: continue-on-error test --- .github/workflows/test.yml | 29 +++++++++++++++++++++++------ 1 file changed, 23 insertions(+), 6 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index a9df88dff..3495b5702 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -2,6 +2,7 @@ name: test on: push: branches: ["**"] + pull_request: workflow_dispatch: inputs: # null for another event skip: @@ -11,14 +12,30 @@ permissions: {} jobs: test1: - if: > - true runs-on: ubuntu-latest steps: - - run: | + - run: exit 1 + continue-on-error: true + - run: exit 1 + continue-on-error: true + - run: exit 1 + continue-on-error: true test2: - if: >- - true runs-on: ubuntu-latest steps: - - run: '' + - run: exit 1 + continue-on-error: true + - run: exit 1 + continue-on-error: true + - run: exit 0 + test3: + runs-on: ubuntu-latest + steps: + - id: step1 + run: exit 0 + continue-on-error: true + - id: step2 + run: exit 0 + continue-on-error: true + - if: contains(steps.*.outcome, 'failure') + run: exit 1