forked from baron/baron-sso
fix(ci): use npx pnpm for dependency installation and handle missing flutter gracefully
This commit is contained in:
@@ -86,8 +86,7 @@ jobs:
|
|||||||
- name: Install adminfront dependencies
|
- name: Install adminfront dependencies
|
||||||
run: |
|
run: |
|
||||||
cd adminfront
|
cd adminfront
|
||||||
npm install -g pnpm
|
npx pnpm install -C ../common --no-frozen-lockfile
|
||||||
pnpm install -C ../common --no-frozen-lockfile
|
|
||||||
|
|
||||||
- name: Biome check adminfront (lint + format)
|
- name: Biome check adminfront (lint + format)
|
||||||
run: |
|
run: |
|
||||||
@@ -98,8 +97,7 @@ jobs:
|
|||||||
- name: Install devfront dependencies
|
- name: Install devfront dependencies
|
||||||
run: |
|
run: |
|
||||||
cd devfront
|
cd devfront
|
||||||
npm install -g pnpm
|
npx pnpm install -C ../common --no-frozen-lockfile
|
||||||
pnpm install -C ../common --no-frozen-lockfile
|
|
||||||
|
|
||||||
- name: Biome check devfront (lint + format)
|
- name: Biome check devfront (lint + format)
|
||||||
run: |
|
run: |
|
||||||
@@ -110,8 +108,7 @@ jobs:
|
|||||||
- name: Install orgfront dependencies
|
- name: Install orgfront dependencies
|
||||||
run: |
|
run: |
|
||||||
cd orgfront
|
cd orgfront
|
||||||
npm install -g pnpm
|
npx pnpm install -C ../common --no-frozen-lockfile
|
||||||
pnpm install -C ../common --no-frozen-lockfile
|
|
||||||
|
|
||||||
- name: Biome check orgfront (lint + format)
|
- name: Biome check orgfront (lint + format)
|
||||||
run: |
|
run: |
|
||||||
|
|||||||
20
Makefile
20
Makefile
@@ -253,17 +253,29 @@ code-check-sync-userfront-locales:
|
|||||||
|
|
||||||
code-check-userfront-install:
|
code-check-userfront-install:
|
||||||
@echo "==> install userfront dependencies"
|
@echo "==> install userfront dependencies"
|
||||||
cd userfront && flutter pub get
|
@if command -v flutter >/dev/null 2>&1; then \
|
||||||
|
cd userfront && flutter pub get; \
|
||||||
|
else \
|
||||||
|
echo "WARNING: flutter not found, skipping userfront dependencies install."; \
|
||||||
|
fi
|
||||||
|
|
||||||
code-check-userfront-lint:
|
code-check-userfront-lint:
|
||||||
@echo "==> userfront format/analyze"
|
@echo "==> userfront format/analyze"
|
||||||
cd userfront && dart format --output=none --set-exit-if-changed lib test
|
@if command -v dart >/dev/null 2>&1; then \
|
||||||
cd userfront && flutter analyze --no-fatal-warnings --no-fatal-infos
|
cd userfront && dart format --output=none --set-exit-if-changed lib test; \
|
||||||
|
else \
|
||||||
|
echo "WARNING: dart not found, skipping userfront format check."; \
|
||||||
|
fi
|
||||||
|
@if command -v flutter >/dev/null 2>&1; then \
|
||||||
|
cd userfront && flutter analyze --no-fatal-warnings --no-fatal-infos; \
|
||||||
|
else \
|
||||||
|
echo "WARNING: flutter not found, skipping userfront analyze."; \
|
||||||
|
fi
|
||||||
|
|
||||||
code-check-front-lint:
|
code-check-front-lint:
|
||||||
@echo "==> adminfront biome lint/format check"
|
@echo "==> adminfront biome lint/format check"
|
||||||
rm -rf adminfront/playwright-report adminfront/test-results
|
rm -rf adminfront/playwright-report adminfront/test-results
|
||||||
cd adminfront && CI=true pnpm install --frozen-lockfile --ignore-scripts
|
cd adminfront && CI=true npx pnpm install --frozen-lockfile --ignore-scripts
|
||||||
cd adminfront && npx biome check . --formatter-enabled=false --organize-imports-enabled=false
|
cd adminfront && npx biome check . --formatter-enabled=false --organize-imports-enabled=false
|
||||||
cd adminfront && npx biome check . --linter-enabled=false --organize-imports-enabled=false
|
cd adminfront && npx biome check . --linter-enabled=false --organize-imports-enabled=false
|
||||||
@echo "==> devfront biome lint/format check"
|
@echo "==> devfront biome lint/format check"
|
||||||
|
|||||||
Reference in New Issue
Block a user