Compare commits
4 commits
e2ad48f4ea
...
828322a4c2
Author | SHA1 | Date | |
---|---|---|---|
|
828322a4c2 | ||
|
51327b64b6 | ||
|
d6990724b1 | ||
|
4d6c2ce52a |
47
.forgejo/workflows/lint-and-validate.yml
Normal file
47
.forgejo/workflows/lint-and-validate.yml
Normal file
|
@ -0,0 +1,47 @@
|
||||||
|
name: Lint and Validate
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
paths:
|
||||||
|
- '**/*.sh'
|
||||||
|
pull_request:
|
||||||
|
paths:
|
||||||
|
- '**/*.sh'
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
lint-and-validate:
|
||||||
|
runs-on: docker
|
||||||
|
container:
|
||||||
|
image: debian:bullseye
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: Install Node.js
|
||||||
|
run: |
|
||||||
|
apt-get update && apt-get install -y curl
|
||||||
|
curl -fsSL https://deb.nodesource.com/setup_16.x | bash -
|
||||||
|
apt-get install -y nodejs
|
||||||
|
|
||||||
|
- name: Checkout Code
|
||||||
|
uses: https://code.forgejo.org/actions/checkout@v4
|
||||||
|
|
||||||
|
<<<<<<< HEAD
|
||||||
|
- name: List Checked Out Files
|
||||||
|
run: ls -al /workspace/ZoopaMario/backup-automation
|
||||||
|
|
||||||
|
>>>>>>> 20dd94e (Add shellcheck workflow)
|
||||||
|
- name: Install ShellCheck
|
||||||
|
run: |
|
||||||
|
apt-get update && apt-get install -y shellcheck
|
||||||
|
|
||||||
|
- name: Verify ShellCheck Installation
|
||||||
|
run: which shellcheck
|
||||||
|
|
||||||
|
- name: Find Shell Scripts
|
||||||
|
run: find . -name '*.sh' -print
|
||||||
|
|
||||||
|
- name: Debug Commit Message
|
||||||
|
run: git log -1 --pretty=%B
|
||||||
|
|
||||||
|
- name: Show Environment Variables
|
||||||
|
run: env
|
||||||
|
|
0
bliblablubb
Normal file
0
bliblablubb
Normal file
Loading…
Reference in a new issue