mirror of
https://github.com/threeal/cmake-action.git
synced 2025-04-22 11:31:21 +00:00
34 lines
686 B
YAML
34 lines
686 B
YAML
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 Node.js
|
|
uses: actions/setup-node@v4.2.0
|
|
with:
|
|
node-version-file: .nvmrc
|
|
|
|
- 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
|