35 lines
569 B
YAML
35 lines
569 B
YAML
name: Moorly Website CI
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- dev
|
|
workflow_dispatch:
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: linux-x64
|
|
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Check Node version
|
|
run: |
|
|
node --version
|
|
npm --version
|
|
test "$(node -p 'process.versions.node.split(".")[0]')" = "24"
|
|
|
|
- name: Install dependencies
|
|
run: npm ci
|
|
|
|
- name: Check
|
|
run: npm run check
|
|
|
|
- name: Build
|
|
run: npm run build
|
|
|
|
- name: Security audit
|
|
run: npm audit
|
|
|