cmake-action/.github/workflows/build.yaml
Alfi Maulana bef022bb70
Some checks failed
Build / Build Action (push) Has been cancelled
Test / Test Action (macos-14) (push) Has been cancelled
Test / Test Action (ubuntu-24.04) (push) Has been cancelled
Test / Test Action (windows-2022) (push) Has been cancelled
Test / Test Action With Specified Directories (push) Has been cancelled
Test / Test Action Without Run Build (push) Has been cancelled
Test / Test Action With Additional Options (push) Has been cancelled
Test / Test Action With Custom Generator (push) Has been cancelled
test: integrate Lefthook (#727)
* style: ignore `dist` and `README.md` in `.prettierignore`

Signed-off-by: Alfi Maulana <alfi.maulana.f@gmail.com>

* test: integrate Lefthook

Signed-off-by: Alfi Maulana <alfi.maulana.f@gmail.com>

* build: remove `build`, `format`, and `lint` scripts

Signed-off-by: Alfi Maulana <alfi.maulana.f@gmail.com>

---------

Signed-off-by: Alfi Maulana <alfi.maulana.f@gmail.com>
2025-06-10 13:01:57 +07:00

35 lines
681 B
YAML

name: Build
on:
workflow_dispatch:
pull_request:
push:
branches: [main]
jobs:
build-action:
name: Build Action
runs-on: ubuntu-24.04
steps:
- name: Checkout Project
uses: actions/checkout@v4.2.2
- name: Setup pnpm
uses: threeal/setup-pnpm-action@v1.0.0
- name: Install Dependencies
run: pnpm install
- name: Check Formatting
run: pnpm prettier --check .
- name: Check Lint
run: pnpm eslint
- name: Check Types
run: pnpm tsc --noEmit
- name: Test Action
run: pnpm test
- name: Build Action
run: pnpm rollup -c && git diff --exit-code dist