check-conventional-commit/.forgejo/workflows/test.yaml
Maximilian Jugl 6eed0afd4d
All checks were successful
Test action / test-valid (push) Successful in 33s
Test action / test-invalid (push) Successful in 32s
feat: initial
2026-04-21 15:35:01 +02:00

37 lines
772 B
YAML

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