.gitea/workflows/check: legg ved en CI jobb som ser over shellskript
This commit is contained in:
@@ -0,0 +1,22 @@
|
|||||||
|
name: "Run shellcheck on shellscripts"
|
||||||
|
on:
|
||||||
|
pull_request:
|
||||||
|
push:
|
||||||
|
jobs:
|
||||||
|
check:
|
||||||
|
runs-on: debian-latest
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v6
|
||||||
|
|
||||||
|
- name: Install shellcheck
|
||||||
|
run: apt-get install --update --assume-yes shellcheck
|
||||||
|
|
||||||
|
- name: Run shellcheck on backup.sh
|
||||||
|
# NOTE: We have a lot of variables that are referenced through indirection,
|
||||||
|
# leading to a lot of false positives for SC2034: "foo appears unused".
|
||||||
|
# See https://www.shellcheck.net/wiki/SC2034 for more details.
|
||||||
|
run: shellcheck --exclude=SC2034 backup.sh
|
||||||
|
|
||||||
|
- name: Run shellcheck on clean_snapshots.sh
|
||||||
|
run: shellcheck clean_snapshots.sh
|
||||||
|
|
||||||
+5
-1
@@ -1,13 +1,17 @@
|
|||||||
# Ignorer alt som standard
|
# Ignorer alt som standard
|
||||||
*
|
*
|
||||||
|
|
||||||
# Inkluder følgende filer i git-repoet
|
# Inkluder følgende filer og kataloger i git-repoet
|
||||||
!/.gitignore
|
!/.gitignore
|
||||||
!/backup.sh
|
!/backup.sh
|
||||||
!/clean_snapshots.sh
|
!/clean_snapshots.sh
|
||||||
!/ssh_config_backup_targets
|
!/ssh_config_backup_targets
|
||||||
!/homepvv.exclude
|
!/homepvv.exclude
|
||||||
|
|
||||||
|
!/.gitea/
|
||||||
|
!/.gitea/workflows/
|
||||||
|
!/.gitea/workflows/*
|
||||||
|
|
||||||
# Git må kunne se `ssh_extra_keys` mappen, men alt annet inni den skal ignoreres
|
# Git må kunne se `ssh_extra_keys` mappen, men alt annet inni den skal ignoreres
|
||||||
!/ssh_extra_keys/
|
!/ssh_extra_keys/
|
||||||
/ssh_extra_keys/*
|
/ssh_extra_keys/*
|
||||||
|
|||||||
Reference in New Issue
Block a user