Merge pull request #37 from PeterVinter/bot/update-changelog-v2.1.2-main #100
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: CI | |
on: | |
push: | |
branches: [ main, develop ] | |
pull_request: | |
branches: [ main, develop ] | |
jobs: | |
shellcheck: | |
name: Shellcheck | |
runs-on: ubuntu-latest | |
permissions: | |
contents: read | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Run ShellCheck | |
uses: ludeeus/action-shellcheck@master | |
with: | |
scandir: '.' | |
severity: error | |
test: | |
name: Test Scripts | |
runs-on: ubuntu-latest | |
permissions: | |
contents: read | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Test file permissions | |
run: | | |
chmod +x *.sh | |
for script in *.sh; do | |
if [ -f "$script" ]; then | |
echo "Testing $script" | |
bash -n "$script" | |
fi | |
done | |
verify-links: | |
name: Verify Documentation Links | |
runs-on: ubuntu-latest | |
permissions: | |
contents: read | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Setup Node.js | |
uses: actions/setup-node@v4 | |
with: | |
node-version: '18' | |
- name: Install markdown-link-check | |
run: npm install -g markdown-link-check | |
- name: Check links in markdown files | |
run: | | |
find . -name "*.md" -type f -exec markdown-link-check {} \; | |
verify-repository-refs: | |
name: Verify Repository References | |
runs-on: ubuntu-latest | |
permissions: | |
contents: read | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Check repository references | |
run: | | |
echo "Checking for old repository references..." | |
! grep -r "linux_docker_container_shutdown" . --exclude-dir=.git | |
! grep -r "docker-safe-shutdown" . --exclude-dir=.git | |
echo "All repository references are updated" |