Skip to content

Commit

Permalink
ci: check dependencies graph (#745)
Browse files Browse the repository at this point in the history
  • Loading branch information
ookami-kb authored Jan 27, 2023
1 parent 85341be commit fd0b12f
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 5 deletions.
10 changes: 6 additions & 4 deletions .github/workflows/check_pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ jobs:
- uses: dart-lang/[email protected]

- name: Activate melos
run: make activate_melos
run: make activate_utils

- name: Install dependencies
run: melos exec -c 1 ${{ env.SCOPE }} -- make dart_get
Expand Down Expand Up @@ -63,7 +63,7 @@ jobs:
- uses: dart-lang/[email protected]

- name: Activate melos
run: make activate_melos
run: make activate_utils

- name: Install dependencies
run: melos exec -c 1 ${{ env.SCOPE }} -- make dart_get
Expand Down Expand Up @@ -130,7 +130,7 @@ jobs:
flutter-version: "3.3.10"

- name: Activate melos
run: make activate_melos
run: make activate_utils

- name: Install dependencies
run: melos exec -c 1 ${{ env.SCOPE }} -- make flutter_get
Expand Down Expand Up @@ -170,7 +170,9 @@ jobs:
run: melos exec -c 1 ${{ env.SCOPE }} --depends-on="drift_dev" -- make flutter_generate_test_schemas

- name: Analyze
run: melos exec -c 1 ${{ env.SCOPE }} -- make flutter_analyze
run: |
melos exec -c 1 ${{ env.SCOPE }} -- make flutter_analyze
melos exec -c 1 ${{ env.SCOPE }} -- make deps_graph_all
- name: Test
run: melos exec -c 1 ${{ env.SCOPE }} --dir-exists="test" -- make flutter_test
Expand Down
1 change: 1 addition & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,5 @@ RUN flutter precache \
&& chown -R root:root ${FLUTTER_HOME}

RUN dart pub global activate melos
RUN dart pub global activate lakos
RUN dart pub global activate remove_from_coverage
3 changes: 2 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,9 @@ ifndef FLUTTER_VERSION
endif
docker push ghcr.io/cryptoplease/flutter:${FLUTTER_VERSION}

activate_melos:
activate_utils:
dart pub global activate melos
dart pub global activate lakos

dart_get:
dart pub get
Expand Down

0 comments on commit fd0b12f

Please sign in to comment.