feat: initial
This commit is contained in:
commit
6eed0afd4d
8 changed files with 339 additions and 0 deletions
37
.forgejo/workflows/test.yaml
Normal file
37
.forgejo/workflows/test.yaml
Normal file
|
|
@ -0,0 +1,37 @@
|
|||
name: Test action
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- main
|
||||
pull_request:
|
||||
types:
|
||||
- opened
|
||||
- synchronize
|
||||
- reopened
|
||||
|
||||
jobs:
|
||||
test-valid:
|
||||
runs-on: stackit-docker
|
||||
steps:
|
||||
- uses: actions/checkout@v6
|
||||
- name: Test valid commit
|
||||
uses: ./
|
||||
with:
|
||||
value: "feat(core): add new validation"
|
||||
|
||||
test-invalid:
|
||||
runs-on: stackit-docker
|
||||
steps:
|
||||
- uses: actions/checkout@v6
|
||||
- name: Test invalid commit
|
||||
id: test-fail
|
||||
continue-on-error: true
|
||||
uses: ./
|
||||
with:
|
||||
value: "Added new validation"
|
||||
- name: Check if test failed
|
||||
if: steps.test-fail.outcome == 'success'
|
||||
run: |
|
||||
echo "The test should have failed but it succeeded."
|
||||
exit 1
|
||||
Loading…
Add table
Add a link
Reference in a new issue