Skip to content

ci: add GitHub Actions CI workflow #3

ci: add GitHub Actions CI workflow

ci: add GitHub Actions CI workflow #3

Workflow file for this run

name: CI
on:
push:
branches: [main]
pull_request:
branches: [main]
concurrency:
group: ci-${{ github.ref }}
cancel-in-progress: true
jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install shellcheck
run: sudo apt-get update -qq && sudo apt-get install -y -qq shellcheck
- name: Run shellcheck
run: |
sh_files=$(find . -name '*.sh' -not -path './.git/*')
if [ -n "$sh_files" ]; then
echo "Checking: $sh_files"
shellcheck --severity=warning $sh_files
else
echo "No shell files found"
fi
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Run tests
run: bash tests/test_skill.sh