Compare commits

...

3 commits

Author SHA1 Message Date
ZoopaMario d342c2c5ef TEST2
Some checks failed
Lint and Validate / lint-and-validate (push) Failing after 59s
Lint and Validate / lint-and-validate (pull_request) Failing after 26s
2024-12-28 21:27:37 +01:00
ZoopaMario 0ae928675d VERY IMPORTANT DATA 2024-12-28 21:25:37 +01:00
ZoopaMario e95970bbaa Add shellcheck workflow 2024-12-28 21:17:00 +01:00
3 changed files with 39 additions and 0 deletions

View file

@ -0,0 +1,38 @@
# .forgejo/workflows/lint-and-validate.yml
name: Lint and Validate
on:
push:
paths:
- '**/*.sh'
pull_request:
paths:
- '**/*.sh'
jobs:
lint-and-validate:
runs-on: docker # Ensures the job runs in a Docker-based environment
container:
image: debian:bullseye # Use a lightweight and stable Debian base image
steps:
- name: Checkout Code
uses: https://code.forgejo.org/actions/checkout@v4
- name: Install ShellCheck
run: |
apt-get update && apt-get install -y shellcheck
- name: Lint Bash Scripts
run: |
echo "Linting Bash scripts..."
find . -name '*.sh' -print0 | xargs -0 shellcheck
- name: Check Commit Messages
run: |
echo "Checking commit message format..."
if ! git log -1 --pretty=%B | grep -Eq '^(feat|fix|chore|docs|style|refactor|test|perf):'; then
echo "Commit message does not follow the conventional format: <type>: <subject>"
exit 1
fi

0
bliblablubb Normal file
View file

1
test.sh Normal file
View file

@ -0,0 +1 @@
NOT VALID