Skip to content

Commit 3f704d0

Browse files
authored
Create a GitHub Actions workflow that fails
This workflow is designed to intentionally fail to test failure handling.
1 parent b3aa164 commit 3f704d0

1 file changed

Lines changed: 24 additions & 0 deletions

File tree

.github/workflows/fail-test.yml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
name: Fail Test
2+
3+
on:
4+
push:
5+
branches: [ main, master ]
6+
pull_request:
7+
branches: [ main, master ]
8+
9+
jobs:
10+
failing-job:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- uses: actions/checkout@v4
14+
15+
- name: This will succeed
16+
run: echo "Starting the workflow"
17+
18+
- name: This will FAIL intentionally
19+
run: |
20+
echo "Forcing failure..."
21+
exit 1
22+
23+
- name: This never runs
24+
run: echo "I will never execute"

0 commit comments

Comments
 (0)