Compare commits
4 commits
e2ad48f4ea
...
828322a4c2
Author | SHA1 | Date | |
---|---|---|---|
|
828322a4c2 | ||
|
51327b64b6 | ||
|
d6990724b1 | ||
|
4d6c2ce52a |
|
@ -15,31 +15,33 @@ jobs:
|
||||||
image: debian:bullseye
|
image: debian:bullseye
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Install Prerequisites
|
- name: Install Node.js
|
||||||
run: |
|
run: |
|
||||||
apt-get update && apt-get install -y git curl
|
apt-get update && apt-get install -y curl
|
||||||
curl -fsSL https://deb.nodesource.com/setup_16.x | bash -
|
curl -fsSL https://deb.nodesource.com/setup_16.x | bash -
|
||||||
apt-get install -y nodejs
|
apt-get install -y nodejs
|
||||||
|
|
||||||
- name: Checkout Code
|
- name: Checkout Code
|
||||||
uses: https://code.forgejo.org/actions/checkout@v4
|
uses: https://code.forgejo.org/actions/checkout@v4
|
||||||
with:
|
|
||||||
fetch-depth: 0 # Fetch the entire history to avoid REST API reliance
|
|
||||||
|
|
||||||
|
<<<<<<< HEAD
|
||||||
|
- name: List Checked Out Files
|
||||||
|
run: ls -al /workspace/ZoopaMario/backup-automation
|
||||||
|
|
||||||
|
>>>>>>> 20dd94e (Add shellcheck workflow)
|
||||||
- name: Install ShellCheck
|
- name: Install ShellCheck
|
||||||
run: |
|
run: |
|
||||||
apt-get update && apt-get install -y shellcheck
|
apt-get update && apt-get install -y shellcheck
|
||||||
|
|
||||||
- name: Lint Bash Scripts
|
- name: Verify ShellCheck Installation
|
||||||
run: |
|
run: which shellcheck
|
||||||
echo "Linting Bash scripts..."
|
|
||||||
find . -name '*.sh' -print0 | xargs -0 shellcheck
|
|
||||||
|
|
||||||
- name: Check Commit Messages
|
- name: Find Shell Scripts
|
||||||
run: |
|
run: find . -name '*.sh' -print
|
||||||
echo "Checking commit message format..."
|
|
||||||
if ! git log -1 --pretty=%B | grep -Eq '^(feat|fix|chore|docs|style|refactor|test|perf):'; then
|
- name: Debug Commit Message
|
||||||
echo "Commit message does not follow the conventional format: <type>: <subject>"
|
run: git log -1 --pretty=%B
|
||||||
exit 1
|
|
||||||
fi
|
- name: Show Environment Variables
|
||||||
|
run: env
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue