forked from baron/baron-sso
CI lint에 format도 추가
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user