Skip to content

Commit 0a6d5d0

Browse files
Create selftest workflow for GitHub Actions
Add selftest workflow with good and bad job scenarios.
1 parent 91358f5 commit 0a6d5d0

1 file changed

Lines changed: 22 additions & 0 deletions

File tree

‎.github/workflows/selftest.yml‎

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
name: selftest
2+
on:
3+
push:
4+
workflow_dispatch:
5+
jobs:
6+
good:
7+
runs-on: ubuntu-latest
8+
steps:
9+
- uses: actions/checkout@v4
10+
- uses: ./
11+
with:
12+
urls: github.com www.github.com
13+
bad-must-fail:
14+
runs-on: ubuntu-latest
15+
steps:
16+
- uses: actions/checkout@v4
17+
- id: c
18+
uses: ./
19+
continue-on-error: true
20+
with:
21+
urls: expired.badssl.com wrong.host.badssl.com self-signed.badssl.com
22+
- run: test "${{ steps.c.outputs.failed }}" = "1"

0 commit comments

Comments
 (0)