mirror of
https://github.com/threeal/cmake-action.git
synced 2025-07-26 07:44:23 +00:00
35 lines
672 B
YAML
35 lines
672 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
|
|
|
|
- name: Test Action
|
|
run: pnpm test
|
|
|
|
- name: Build Action
|
|
run: pnpm rollup -c && git diff --exit-code dist
|