mirror of
https://github.com/threeal/cmake-action.git
synced 2025-07-25 15:24:22 +00:00
ci: merge check
workflow to build
workflow
Signed-off-by: Alfi Maulana <alfi.maulana.f@gmail.com>
This commit is contained in:
parent
a52093cc86
commit
d5a874ef77
11
.github/workflows/build.yaml
vendored
11
.github/workflows/build.yaml
vendored
@ -18,8 +18,11 @@ jobs:
|
||||
- name: Install Dependencies
|
||||
run: pnpm install
|
||||
|
||||
- name: Build Package
|
||||
run: pnpm build
|
||||
- name: Check Formatting
|
||||
run: pnpm format && git diff --exit-code HEAD
|
||||
|
||||
- name: Check Diff
|
||||
run: git diff && git diff-index --quiet --exit-code HEAD
|
||||
- name: Check Lint
|
||||
run: pnpm lint
|
||||
|
||||
- name: Build Package
|
||||
run: pnpm build && git diff --exit-code HEAD
|
||||
|
28
.github/workflows/check.yaml
vendored
28
.github/workflows/check.yaml
vendored
@ -1,28 +0,0 @@
|
||||
name: Check
|
||||
on:
|
||||
workflow_dispatch:
|
||||
pull_request:
|
||||
push:
|
||||
branches: [main]
|
||||
jobs:
|
||||
check-package:
|
||||
name: Check Package
|
||||
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 format
|
||||
|
||||
- name: Check Diff
|
||||
run: git diff && git diff-index --quiet --exit-code HEAD
|
||||
|
||||
- name: Check Lint
|
||||
run: pnpm lint
|
Loading…
Reference in New Issue
Block a user