Skip to content

Merge pull request #29 from stanic-xyz/dependabot/npm_and_yarn/qing-u… #39

Merge pull request #29 from stanic-xyz/dependabot/npm_and_yarn/qing-u…

Merge pull request #29 from stanic-xyz/dependabot/npm_and_yarn/qing-u… #39

Workflow file for this run

# This workflow will build a Java project with Maven
# For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-maven
name: Node.js CI
on:
push:
branches: [ "main" ]
paths:
- "qing-ui/src/main/frontend/**"
- ".github/workflows/build-web.yml"
pull_request:
branches: [ "main" ]
jobs:
build:
timeout-minutes: 10
runs-on: ubuntu-latest
defaults:
run:
working-directory: ./qing-ui/src/main/frontend/
strategy:
matrix:
node-version: [ 20.x ]
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/
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"
cache-dependency-path: ./qing-ui/src/main/frontend/package-lock.json
- run: npm ci
- run: npm run build --if-present