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

feat: adds flutter coverage #283

Merged
merged 5 commits into from
Jul 19, 2024
Merged
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
13 changes: 7 additions & 6 deletions earthly/flutter/Earthfile
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ flutter-src:
IF [ "$TARGETARCH" = "amd64" ]
RUN wget -qO - https://storage.googleapis.com/flutter_infra_release/releases/stable/linux/flutter_linux_$version-stable.tar.xz \
| tar -xJ -C /flutter
ELSE
ELSE
GIT CLONE --branch $version https://github.com/flutter/flutter.git /flutter
END
SAVE ARTIFACT /flutter flutter
Expand All @@ -30,7 +30,7 @@ flutter-base:
ARG chrome_package_release = 1
ARG chromium_version = 126.0.6478.126-1~deb12u1
DO installer+INSTALL_CHROME_LINUX64 --chrome_version=$chrome_version --chrome_package_release=$chrome_package_release --chromium_version=$chromium_version

ARG edge_version = 125.0.2535.51
ARG edge_package_release = 1
DO installer+INSTALL_EDGE_LINUX64 --edge_version=$edge_version --edge_package_release=$edge_package_release
Expand All @@ -39,7 +39,7 @@ flutter-base:
ARG firefox_version_arm64 = 115.12.0esr-1~deb12u1
ARG gecko_version = 0.34.0
DO installer+INSTALL_FIREFOX_LINUX64 --firefox_version_amd64=$firefox_version_amd64 --firefox_version_arm64=$firefox_version_arm64 --gecko_version=$gecko_version

COPY +flutter-src/flutter /usr/local
ENV PATH="/usr/local/flutter/bin:/usr/local/flutter/bin/cache/dart-sdk/bin:$HOME/.pub-cache/bin:${PATH}"
RUN flutter config --no-analytics
Expand All @@ -49,7 +49,7 @@ flutter-base:
RUN dart pub global activate melos
RUN dart pub global activate junitreport
RUN dart pub global activate coverage

flutter-base-all-hosts:
BUILD --platform=linux/amd64 --platform=linux/arm64 +flutter-base

Expand Down Expand Up @@ -142,6 +142,7 @@ UNIT_TESTS:
RUN melos run test-report
WAIT
SAVE ARTIFACT test_reports AS LOCAL test_reports
SAVE ARTIFACT coverage AS LOCAL coverage
END
ELSE
RUN echo "Running flutter test"
Expand Down Expand Up @@ -175,8 +176,8 @@ BUILD_WEB:
license-checker-base:
DO +SETUP
COPY ./template_license_checker.yaml .
# Perform license check for Flutter project.

# Perform license check for Flutter project.
LICENSE_CHECK:
FUNCTION

Expand Down
Loading