This repository has been archived by the owner on Jul 24, 2024. It is now read-only.
improve flakyness in test #190
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Tests (Lowest constraints) | |
on: | |
push: | |
branches: | |
- master | |
- develop | |
- feat/* | |
pull_request: | |
jobs: | |
tests: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: subosito/flutter-action@v2 | |
with: | |
channel: 'stable' | |
cache: true | |
- name: Install Melos | |
run: dart pub global activate melos | |
- name: Boostrap | |
run: melos bs | |
- name: Downgrade deps | |
run: melos deps_downgrade | |
# pre-pull the image so `usePostgresDocker` does not delay which may causes | |
# tests to timeout | |
- name: pull latest postgres image | |
run: docker pull postgres:latest | |
- name: Run tests | |
run: melos test:all | |
analyze: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: subosito/flutter-action@v2 | |
with: | |
channel: 'stable' | |
cache: true | |
- name: Install Melos | |
run: dart pub global activate melos | |
- name: Boostrap | |
run: melos bs | |
- name: Downgrade deps | |
run: melos deps_downgrade | |
- name: Analyze project source | |
run: melos analyze |