Skip to content

Commit

Permalink
refactor: remove OpenAPI spec from ci
Browse files Browse the repository at this point in the history
  • Loading branch information
LynxLynxx authored Nov 5, 2024
1 parent 30a8116 commit 62e22a1
Showing 1 changed file with 0 additions and 28 deletions.
28 changes: 0 additions & 28 deletions earthly/flutter/Earthfile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 62e22a1

Please sign in to comment.