From 8676e4cff1152224ac324ecb302025acdf2ac229 Mon Sep 17 00:00:00 2001 From: Dominik Toton <166132265+dtscalac@users.noreply.github.com> Date: Sat, 8 Feb 2025 11:49:47 +0100 Subject: [PATCH] chore: move static analysis to build stage (#1804) --- catalyst_voices/Earthfile | 10 +++++----- catalyst_voices/justfile | 2 +- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/catalyst_voices/Earthfile b/catalyst_voices/Earthfile index 8fa86be011f..16a41f0cb7e 100644 --- a/catalyst_voices/Earthfile +++ b/catalyst_voices/Earthfile @@ -77,11 +77,6 @@ code-generator: # restore current working directory to the root of the project WORKDIR /frontend -# Runs static analysis on the code. -check-static-analysis: - FROM +code-generator - DO flutter-ci+ANALYZE - # Runs code formatting checks. check-code-formatting: FROM +builder @@ -102,6 +97,11 @@ test-unit: FROM +code-generator DO flutter-ci+UNIT_TESTS +# Runs static analysis on the code. +build-static-analysis: + FROM +code-generator + DO flutter-ci+ANALYZE + # Build web version of Catalyst Voices build-web: FROM +code-generator diff --git a/catalyst_voices/justfile b/catalyst_voices/justfile index a870a7d6a9b..08679d167dd 100755 --- a/catalyst_voices/justfile +++ b/catalyst_voices/justfile @@ -20,7 +20,7 @@ bootstrap: generate-code # Runs all static code checks check-code: - earthly +check-static-analysis + earthly +build-static-analysis earthly +check-code-formatting earthly +check-license