Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor: remove OpenAPI spec from ci #350

Closed
wants to merge 2 commits into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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