Skip to content

chore: Update test #1254

chore: Update test

chore: Update test #1254

Workflow file for this run

name: test
on:
push:
branches: ["**"]
pull_request:
workflow_dispatch:
inputs: # null for another event
skip:
type: boolean
default: false
permissions: {}
jobs:
test1:
runs-on: ubuntu-latest
steps:
- run: exit 0
- id: step1
run: exit 0
- id: step2
if: ${{ success() || contains(fromJson('["success", "failure"]'),steps.step1.outcome) }}
run: exit 1
- id: step3
if: ${{ success() || contains(fromJson('["success", "failure"]'),steps.step2.outcome) }}
run: exit 0
- if: ${{ success() || contains(fromJson('["success", "failure"]'),steps.step3.outcome) }}
run: exit 0
test2:
runs-on: ubuntu-latest
steps:
- 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
- name: 'Fail this job if any step has failed'
if: contains(steps.*.outcome, 'failure')
run: exit 1