commit b381573b163aa9bdad28a3b4ffde228b0128273a parent bc43bec3a7daeece0a0e6a55f6026dfb704724cc Author: Henry Unite <unitehenry@gmail.com> Date: Sun, 12 Apr 2026 22:43:09 +0000 ci: linter Diffstat:
| A | .github/workflows/main.yml | | | 32 | ++++++++++++++++++++++++++++++++ |
1 file changed, 32 insertions(+), 0 deletions(-)
diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml @@ -0,0 +1,32 @@ +name: Lint and Spellcheck + +on: + push: + branches: [ main ] + +jobs: + check: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v4 + + - name: Setup Node.js + uses: actions/setup-node@v4 + with: + node-version: 'lts/*' + + - name: Install clang-format + run: sudo apt-get update && sudo apt-get install -y clang-format + + - name: Install dependencies + run: npm install -g prettier cspell + + - name: Make scripts executable + run: chmod +x scripts/lint scripts/spellcheck + + - name: Run lint + run: ./scripts/lint + + - name: Run spellcheck + run: ./scripts/spellcheck