Skip to content

Commit

Permalink
💚 ++
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexV525 committed Nov 7, 2023
1 parent 4bbe685 commit 5b883cd
Showing 1 changed file with 14 additions and 23 deletions.
37 changes: 14 additions & 23 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,10 @@ on:
paths-ignore:
- "**.md"

defaults:
run:
shell: bash -leo pipefail {0}

jobs:
workflows:
runs-on: ubuntu-latest
Expand All @@ -31,7 +35,6 @@ jobs:
- run: |
chmod +x ./scripts/prepare_pinning_certs.sh
./scripts/prepare_pinning_certs.sh
shell: bash
- name: Install proxy for tests
run: sudo apt-get install -y squid
- run: dart pub get
Expand All @@ -41,32 +44,20 @@ jobs:
- name: Patching files for Flutter ${{ matrix.sdk }}
run: dart ./scripts/files_patch.dart
- name: Check satisfied packages
run: dart ./scripts/melos_packages.dart
- name: Bootstrap
run: |
source .melos_ignored_packages
melos bootstrap $(eval echo $IGNORED_PACKAGES)
dart ./scripts/melos_packages.dart
echo $(cat .melos_ignored_packages) >> ~/.bashrc
- name: Bootstrap
run: melos bootstrap $(eval echo $IGNORED_PACKAGES)
- name: Format
run: |
source .melos_ignored_packages
melos exec $(eval echo $IGNORED_PACKAGES) -- "dart format --set-exit-if-changed ."
run: melos exec $(eval echo $IGNORED_PACKAGES) -- "dart format --set-exit-if-changed ."
- name: Analyze Dart packages
run: |
source .melos_ignored_packages
melos exec $(eval echo $IGNORED_PACKAGES) --no-flutter -- "dart analyze --fatal-infos"
run: melos exec $(eval echo $IGNORED_PACKAGES) --no-flutter -- "dart analyze --fatal-infos"
- name: Analyze Flutter packages
run: |
source .melos_ignored_packages
melos exec $(eval echo $IGNORED_PACKAGES) --flutter -- "flutter analyze --fatal-infos"
run: melos exec $(eval echo $IGNORED_PACKAGES) --flutter -- "flutter analyze --fatal-infos"
- name: Publish dry-run
run: |
source .melos_ignored_packages
melos exec $(eval echo $IGNORED_PACKAGES) --ignore="*example*" -- "dart pub publish --dry-run"
run: melos exec $(eval echo $IGNORED_PACKAGES) --ignore="*example*" -- "dart pub publish --dry-run"
- name: Test Dart packages
run: |
source .melos_ignored_packages
melos exec $(eval echo $IGNORED_PACKAGES) --ignore="*example*" --no-flutter -- "dart test --chain-stack-traces --platform=vm,chrome,firefox"
run: melos exec $(eval echo $IGNORED_PACKAGES) --ignore="*example*" --no-flutter -- "dart test --chain-stack-traces --platform=vm,chrome,firefox"
- name: Test Flutter packages
run: |
source .melos_ignored_packages
melos exec $(eval echo $IGNORED_PACKAGES) --ignore="*example*" --flutter -- "flutter test"
run: melos exec $(eval echo $IGNORED_PACKAGES) --ignore="*example*" --flutter -- "flutter test"

0 comments on commit 5b883cd

Please sign in to comment.