37 lines
630 B
YAML
37 lines
630 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: 24
|
|
cache: "bun"
|
|
|
|
- name: Install Bun
|
|
run: npm install -g bun
|
|
|
|
- name: Install dependencies
|
|
run: bun install
|
|
|
|
- name: Check Linting
|
|
run: bun run lint
|
|
|
|
- name: Check Format
|
|
run: bun run format
|
|
|
|
- name: Playgroud build check
|
|
run: bun run build
|