Skip to content

Commit

Permalink
ci(earthly/flutter): Add license_checker into flutter_base (#312)
Browse files Browse the repository at this point in the history
  • Loading branch information
apskhem authored Sep 23, 2024
1 parent 04ad71a commit 2745a41
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 92 deletions.
16 changes: 1 addition & 15 deletions earthly/flutter/Earthfile
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ flutter-base:
RUN dart pub global activate junitreport
RUN dart pub global activate coverage
RUN dart pub global activate combine_coverage
RUN dart pub global activate license_checker

# flutter-base-all-hosts installs required tools and packages for all hosts.
flutter-base-all-hosts:
Expand Down Expand Up @@ -172,18 +173,3 @@ BUILD_WEB:
ELSE
SAVE ARTIFACT web /web
END

# license-checker-base base license checker setup.
license-checker-base:
DO +SETUP
COPY ./template_license_checker.yaml .

# Perform license check for Flutter project.
LICENSE_CHECK:
FUNCTION

ARG license_checker_file="license_checker.yaml"
RUN diff $license_checker_file ./template_license_checker.yaml
RUN dart pub global activate license_checker
RUN flutter pub get
RUN lic_ck check-licenses --config $license_checker_file -i
35 changes: 0 additions & 35 deletions earthly/flutter/template_license_checker.yaml

This file was deleted.

7 changes: 0 additions & 7 deletions examples/flutter/example/Earthfile
Original file line number Diff line number Diff line change
Expand Up @@ -39,10 +39,3 @@ build-web:
ARG --required SENTRY_DSN

DO flutter-ci+BUILD_WEB --WORKDIR=$WORKDIR --TARGET=$TARGET --SENTRY_DSN=$SENTRY_DSN

# Check the licenses of the Flutter dependencies.
check-license:
FROM flutter-ci+license-checker-base

COPY . .
DO flutter-ci+LICENSE_CHECK --license_checker_file=license_checker.yaml
35 changes: 0 additions & 35 deletions examples/flutter/example/license_checker.yaml

This file was deleted.

0 comments on commit 2745a41

Please sign in to comment.