mirror of
https://github.com/CJackHwang/ds2api.git
synced 2026-05-01 23:15:27 +08:00
41 lines
805 B
YAML
41 lines
805 B
YAML
name: Quality Gates
|
|
|
|
on:
|
|
pull_request:
|
|
push:
|
|
branches:
|
|
- dev
|
|
|
|
permissions:
|
|
contents: read
|
|
|
|
jobs:
|
|
quality-gates:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Setup Go
|
|
uses: actions/setup-go@v5
|
|
with:
|
|
go-version: "1.26.x"
|
|
|
|
- name: Setup Node
|
|
uses: actions/setup-node@v4
|
|
with:
|
|
node-version: "24"
|
|
cache: "npm"
|
|
cache-dependency-path: webui/package-lock.json
|
|
|
|
- name: Refactor Line Gate
|
|
run: ./tests/scripts/check-refactor-line-gate.sh
|
|
|
|
- name: Unit Gates (Go + Node)
|
|
run: ./tests/scripts/run-unit-all.sh
|
|
|
|
- name: WebUI Build Gate
|
|
run: |
|
|
npm ci --prefix webui
|
|
npm run build --prefix webui
|