From 62e22a11683859ef6139f373c33c2ae275f3abe3 Mon Sep 17 00:00:00 2001 From: Ryszard Schossler <51096731+LynxLynxx@users.noreply.github.com> Date: Tue, 5 Nov 2024 12:50:17 +0100 Subject: [PATCH] refactor: remove OpenAPI spec from ci --- earthly/flutter/Earthfile | 28 ---------------------------- 1 file changed, 28 deletions(-) diff --git a/earthly/flutter/Earthfile b/earthly/flutter/Earthfile index 0e78ece8..780a4926 100644 --- a/earthly/flutter/Earthfile +++ b/earthly/flutter/Earthfile @@ -75,34 +75,6 @@ BOOTSTRAP: RUN echo "No melos.yaml file found" END -# Generates dart code from open api spec. -OPENAPI_CODE_GEN: - FUNCTION - - ARG SAVE_LOCALLY=false - ARG --required GEN_CODE_PATH - ARG --required LOCAL_GEN_CODE_PATH - - RUN flutter pub get - RUN dart run build_runner build --delete-conflicting-outputs - - IF [ $SAVE_LOCALLY = true ] - SAVE ARTIFACT "$GEN_CODE_PATH/*" AS LOCAL $LOCAL_GEN_CODE_PATH - ELSE - SAVE ARTIFACT $GEN_CODE_PATH - END - -# Validates open api generated specs. -OPENAPI_VALIDATE: - FUNCTION - - ARG --required WORKDIR - - WORKDIR $WORKDIR - RUN dart run openapi_validate - - SAVE ARTIFACT openapi_validate - # Runs dart static analysis. ANALYZE: FUNCTION