forked from baron/baron-sso
CI lint에 format도 추가
This commit is contained in:
@@ -10,7 +10,7 @@ on:
|
|||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
inputs:
|
inputs:
|
||||||
run_lint:
|
run_lint:
|
||||||
description: "Run linters for Go and Flutter"
|
description: "Run lint/format checks for Go, Flutter, adminfront, devfront"
|
||||||
required: true
|
required: true
|
||||||
type: boolean
|
type: boolean
|
||||||
default: true
|
default: true
|
||||||
@@ -67,6 +67,28 @@ jobs:
|
|||||||
channel: "stable"
|
channel: "stable"
|
||||||
cache: true
|
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
|
- name: Lint Go backend
|
||||||
uses: golangci/golangci-lint-action@v6
|
uses: golangci/golangci-lint-action@v6
|
||||||
with:
|
with:
|
||||||
@@ -74,6 +96,11 @@ jobs:
|
|||||||
working-directory: backend
|
working-directory: backend
|
||||||
args: --enable-only=gofmt,gofumpt
|
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
|
- name: Analyze Flutter userfront
|
||||||
run: |
|
run: |
|
||||||
cd userfront
|
cd userfront
|
||||||
@@ -158,7 +185,7 @@ jobs:
|
|||||||
userfront-tests:
|
userfront-tests:
|
||||||
needs: lint
|
needs: lint
|
||||||
if: ${{ always() && (github.event_name != 'workflow_dispatch' || inputs.run_userfront_tests == true) }}
|
if: ${{ always() && (github.event_name != 'workflow_dispatch' || inputs.run_userfront_tests == true) }}
|
||||||
runs-on: ubuntu-latest-slim
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout code
|
- name: Checkout code
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
|
|||||||
Reference in New Issue
Block a user