forked from baron/baron-sso
userfront로 리펙토링 완료
This commit is contained in:
@@ -13,8 +13,8 @@ on:
|
||||
required: true
|
||||
type: boolean
|
||||
default: true
|
||||
run_frontend_tests:
|
||||
description: "Run frontend Flutter tests"
|
||||
run_userfront_tests:
|
||||
description: "Run userfront Flutter tests"
|
||||
required: true
|
||||
type: boolean
|
||||
default: true
|
||||
@@ -46,9 +46,9 @@ jobs:
|
||||
working-directory: backend
|
||||
args: --enable-only=gofmt,gofumpt
|
||||
|
||||
- name: Analyze Flutter frontend
|
||||
- name: Analyze Flutter userfront
|
||||
run: |
|
||||
cd frontend
|
||||
cd userfront
|
||||
flutter analyze --no-fatal-warnings --no-fatal-infos
|
||||
|
||||
backend-tests:
|
||||
@@ -85,9 +85,9 @@ jobs:
|
||||
cd backend
|
||||
go test -v ./...
|
||||
|
||||
frontend-tests:
|
||||
userfront-tests:
|
||||
needs: lint
|
||||
if: ${{ inputs.run_frontend_tests == true }}
|
||||
if: ${{ inputs.run_userfront_tests == true }}
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout code
|
||||
@@ -99,11 +99,11 @@ jobs:
|
||||
channel: "stable"
|
||||
cache: true
|
||||
|
||||
- name: Run frontend tests
|
||||
- name: Run userfront tests
|
||||
run: |
|
||||
cd frontend
|
||||
cd userfront
|
||||
if [ -d test ]; then
|
||||
flutter test
|
||||
else
|
||||
echo "No frontend tests: skipping (test/ directory not found)."
|
||||
echo "No userfront tests: skipping (test/ directory not found)."
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user