1
0
forked from baron/baron-sso

CI lint에 format도 추가

This commit is contained in:
Lectom C Han
2026-02-20 10:20:38 +09:00
parent 9e3e08dd24
commit 226a236bf2

View File

@@ -10,7 +10,7 @@ on:
workflow_dispatch:
inputs:
run_lint:
description: "Run linters for Go and Flutter"
description: "Run lint/format checks for Go, Flutter, adminfront, devfront"
required: true
type: boolean
default: true
@@ -67,6 +67,28 @@ jobs:
channel: "stable"
cache: true
- name: Install adminfront dependencies
run: |
cd adminfront
npm ci
- name: Biome check adminfront (lint + format)
run: |
cd adminfront
npx biome lint .
npx biome format . --check
- name: Install devfront dependencies
run: |
cd devfront
npm ci
- name: Biome check devfront (lint + format)
run: |
cd devfront
npx biome lint .
npx biome format . --check
- name: Lint Go backend
uses: golangci/golangci-lint-action@v6
with:
@@ -74,6 +96,11 @@ jobs:
working-directory: backend
args: --enable-only=gofmt,gofumpt
- name: Format Flutter userfront
run: |
cd userfront
dart format --output=none --set-exit-if-changed lib test
- name: Analyze Flutter userfront
run: |
cd userfront
@@ -158,7 +185,7 @@ jobs:
userfront-tests:
needs: lint
if: ${{ always() && (github.event_name != 'workflow_dispatch' || inputs.run_userfront_tests == true) }}
runs-on: ubuntu-latest-slim
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4