Skip to content

ci: add GitHub Actions CI workflow #2

ci: add GitHub Actions CI workflow

ci: add GitHub Actions CI workflow #2

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: [self-hosted, linux]
steps:
- uses: actions/checkout@v4
- name: Install shellcheck
run: |
if ! command -v shellcheck &>/dev/null; then
sudo apt-get update -qq && sudo apt-get install -y -qq shellcheck
fi
- name: Run shellcheck
run: |
sh_files=$(find . -name '*.sh' -not -path './.git/*')
if [ -n "$sh_files" ]; then
echo "Checking: $sh_files"
shellcheck $sh_files
else
echo "No shell files found"
fi
test:
runs-on: [self-hosted, linux]
steps:
- uses: actions/checkout@v4
- name: Run tests
run: bash tests/test_skill.sh