mirror of
https://github.com/gbdev/rgbds.git
synced 2026-08-19 21:34:31 +00:00
Add CI job to check syntax of contrib scripts
Note that `zsh` is not installed in `ubuntu-slim` by default.
This commit is contained in:
Executable
+8
@@ -0,0 +1,8 @@
|
||||
#!/usr/bin/env sh
|
||||
set -e
|
||||
|
||||
bash --version
|
||||
zsh --version
|
||||
|
||||
find contrib -type f \( -name '*.sh' -o -name '*.bash' \) -exec bash --norc -n {} \;
|
||||
find contrib/zsh_compl -type f -name '_rgb*' -exec zsh -n {} \;
|
||||
@@ -0,0 +1,23 @@
|
||||
name: Contrib script syntax checking
|
||||
on:
|
||||
- push
|
||||
- pull_request
|
||||
|
||||
env:
|
||||
# Force colored output (see https://bixense.com/clicolors/ and https://force-color.org/)
|
||||
TERM: xterm-256color
|
||||
CLICOLOR: 1
|
||||
CLICOLOR_FORCE: 1
|
||||
|
||||
jobs:
|
||||
check-contrib:
|
||||
runs-on: ubuntu-slim
|
||||
steps:
|
||||
- name: Checkout repo
|
||||
uses: actions/checkout@v7
|
||||
- name: Install zsh
|
||||
run: |
|
||||
sudo apt install -Uyq zsh
|
||||
- name: Check contrib scripts
|
||||
run: |
|
||||
.github/scripts/check-contrib.sh
|
||||
Reference in New Issue
Block a user