1
0
mirror of https://github.com/tw93/Mole.git synced 2026-02-07 03:35:40 +00:00
Files
Mole/.github/workflows/shell-quality-checks.yml
2025-11-14 17:35:16 +08:00

35 lines
817 B
YAML

name: Shell Script Quality Checks
on:
push:
branches: [main]
pull_request:
jobs:
shell-quality-checks:
runs-on: macos-latest
steps:
- name: Checkout source code
uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: '1.22.6'
- name: Install shell linting and testing tools
run: brew install bats-core shfmt shellcheck
- name: Auto-format shell scripts with shfmt
run: ./scripts/format.sh
- name: Run shellcheck linter and bats tests
run: ./scripts/check.sh
- name: Build Go disk analyzer
run: mkdir -p bin && go build -o bin/analyze-go ./cmd/analyze
- name: Build Go optimizer
run: mkdir -p bin && go build -o bin/optimize-go ./cmd/optimize