Skip to content

add frontend admin CI #2

add frontend admin CI

add frontend admin CI #2

Workflow file for this run

name: frontend-admin-pr
on:
pull_request:
branches:
- "main"
paths:
- "frontend/admin/**"
jobs:
frontend-admin-pr-build:
runs-on: ubuntu-latest
defaults:
run:
working-directory: "./frontend/admin"
strategy:
matrix:
node-version: [18.x, 20.x, 22.x]
cache: 'npm'

Check failure on line 19 in .github/workflows/nodejs.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/nodejs.yml

Invalid workflow file

You have an error in your yaml syntax on line 19
cache-dependency-path: './frontend/admin/package-lock.json'
steps:
- uses: actions/checkout@v4
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
cache: 'npm'
- name: Install packages
run: npm ci
- name: Build
run: npm run build
- name: Lint
run: npm run lint