34 lines
566 B
YAML
34 lines
566 B
YAML
name: Node.js CI
|
|
|
|
on:
|
|
push:
|
|
branches: ["main"]
|
|
pull_request:
|
|
branches: ["main"]
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Install Node.js
|
|
uses: actions/setup-node@v4
|
|
with:
|
|
node-version: 22
|
|
cache: "npm"
|
|
|
|
- name: Install dependencies
|
|
run: npm ci
|
|
|
|
- name: Check Linting
|
|
run: npm run lint
|
|
|
|
- name: Check Format
|
|
run: npm run format
|
|
|
|
- name: Playgourd build check
|
|
run: npm run build
|