mirror of
https://github.com/arcodange-org/mediabunny.git
synced 2026-09-27 02:43:48 +02:00
Create separate Build check CI
This commit is contained in:
@@ -0,0 +1,28 @@
|
|||||||
|
name: Build check
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches:
|
||||||
|
- main
|
||||||
|
pull_request:
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
lint:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: Checkout repository
|
||||||
|
uses: actions/checkout@08eba0b27e820071cde6df949e0beb9ba4906955 # v4.3.0
|
||||||
|
|
||||||
|
- name: Set up Node.js
|
||||||
|
uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0
|
||||||
|
with:
|
||||||
|
node-version: 22
|
||||||
|
cache: 'npm'
|
||||||
|
|
||||||
|
- name: Install dependencies
|
||||||
|
run: npm ci
|
||||||
|
|
||||||
|
# Building the docs also means building the core library
|
||||||
|
- name: Build everything
|
||||||
|
run: npm run docs:build
|
||||||
@@ -27,14 +27,4 @@ jobs:
|
|||||||
run: npm run check
|
run: npm run check
|
||||||
|
|
||||||
- name: Run ESLint
|
- name: Run ESLint
|
||||||
run: npm run lint
|
run: npm run lint
|
||||||
|
|
||||||
- name: Run build
|
|
||||||
run: npm run build
|
|
||||||
|
|
||||||
- name: Generate API docs
|
|
||||||
run: npm run docs:generate
|
|
||||||
|
|
||||||
# We do this because we want to surface doc-building errors early
|
|
||||||
- name: Build docs
|
|
||||||
run: vitepress build docs
|
|
||||||
Reference in New Issue
Block a user