mirror of
https://github.com/tw93/Mole.git
synced 2026-02-04 09:46:44 +00:00
30 lines
574 B
YAML
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
|