1
0
mirror of https://github.com/tw93/Mole.git synced 2026-02-04 16:14:44 +00:00

Code support format detection

This commit is contained in:
Tw93
2025-10-12 20:49:10 +08:00
parent d111f18cea
commit cf821cdc4b
25 changed files with 1482 additions and 1152 deletions

View File

@@ -1,4 +1,4 @@
name: Mole Tests
name: Tests
on:
push:
@@ -13,10 +13,17 @@ jobs:
- name: Checkout repository
uses: actions/checkout@v4
- name: Install bats-core
run: |
brew update
brew install bats-core
- name: Install tools
run: brew install bats-core shfmt shellcheck
- name: Run test suite
- 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