1
0
mirror of https://github.com/tw93/Mole.git synced 2026-02-04 09:46:44 +00:00
Files
Mole/.github/workflows/tests.yml
2025-10-12 20:49:10 +08:00

30 lines
574 B
YAML

name: Tests
on:
push:
branches: [main]
pull_request:
jobs:
test:
runs-on: macos-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Install tools
run: brew install bats-core shfmt shellcheck
- name: Check formatting
run: ./scripts/format.sh --check
- name: Run shellcheck
run: |
find . -type f \( -name "*.sh" -o -name "mole" \) \
! -path "./.git/*" \
-exec shellcheck -S warning {} +
- name: Run tests
run: tests/run.sh