diff --git a/.github/workflows/cicd.yml b/.github/workflows/cicd.yml index a2161ffb62a..43aa297dc03 100644 --- a/.github/workflows/cicd.yml +++ b/.github/workflows/cicd.yml @@ -7,6 +7,10 @@ on: pull_request: types: [opened, reopened, synchronize] + +env: + FLUTTER_MIN_VERSION: '3.22.0' + jobs: # BEGIN LINTING STAGE format: @@ -14,8 +18,6 @@ jobs: steps: - uses: actions/checkout@v4 - uses: subosito/flutter-action@v2 - with: - channel: main - uses: bluefireteam/melos-action@v3 - run: melos run format-check @@ -25,7 +27,18 @@ jobs: - uses: actions/checkout@v4 - uses: subosito/flutter-action@v2 with: - channel: main + flutter-version: ${{env.FLUTTER_MIN_VERSION}} + - uses: bluefireteam/melos-action@v3 + - name: "Analyze with lowest supported version" + uses: invertase/github-action-dart-analyzer@v3 + with: + fatal-infos: true + + analyze-latest: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: subosito/flutter-action@v2 - uses: bluefireteam/melos-action@v3 - name: "Analyze with latest stable" uses: invertase/github-action-dart-analyzer@v3 @@ -47,8 +60,6 @@ jobs: steps: - uses: actions/checkout@v4 - uses: subosito/flutter-action@v2 - with: - channel: main - uses: bluefireteam/melos-action@v3 - name: Install DCM uses: CQLabs/setup-dcm@v1 @@ -66,7 +77,6 @@ jobs: - uses: actions/checkout@v4 - uses: subosito/flutter-action@v2 with: - channel: main cache: true - uses: bluefireteam/melos-action@v3 - name: Run tests