mirror of
https://github.com/threeal/cmake-action.git
synced 2025-04-21 19:11:21 +00:00
31 lines
620 B
YAML
31 lines
620 B
YAML
name: Check
|
|
on:
|
|
workflow_dispatch:
|
|
pull_request:
|
|
push:
|
|
branches: [main]
|
|
jobs:
|
|
check-package:
|
|
name: Check Package
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout Project
|
|
uses: actions/checkout@v4.1.7
|
|
|
|
- name: Setup Node.js
|
|
uses: actions/setup-node@v4.0.3
|
|
with:
|
|
node-version: latest
|
|
|
|
- name: Setup Yarn
|
|
uses: threeal/setup-yarn-action@v2.0.0
|
|
|
|
- name: Check Formatting
|
|
run: yarn format
|
|
|
|
- name: Check Diff
|
|
run: git diff && git diff-index --quiet --exit-code HEAD
|
|
|
|
- name: Check Lint
|
|
run: yarn lint
|