diff --git a/.github/workflows/cicd.yml b/.github/workflows/cicd.yml index 7d728c70aee..bb23f013794 100644 --- a/.github/workflows/cicd.yml +++ b/.github/workflows/cicd.yml @@ -7,11 +7,20 @@ on: pull_request: types: [opened, reopened, synchronize] + env: FLUTTER_MIN_VERSION: '3.41.0' jobs: # BEGIN LINTING STAGE + format: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: subosito/flutter-action@v2 + - uses: bluefireteam/melos-action@v3 + - run: melos run format-check + analyze: runs-on: ubuntu-latest steps: @@ -25,6 +34,17 @@ jobs: 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 + with: + fatal-infos: true + markdown-lint: runs-on: ubuntu-latest steps: @@ -49,3 +69,16 @@ jobs: - name: Run DCM run: dcm analyze . # END LINTING STAGE + + # BEGIN TESTING STAGE + test: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: subosito/flutter-action@v2 + with: + cache: true + - uses: bluefireteam/melos-action@v3 + - name: Run tests + run: melos test + # END TESTING STAGE diff --git a/README.md b/README.md index 1f5a5816f47..4545e8ddd60 100644 --- a/README.md +++ b/README.md @@ -18,7 +18,6 @@ A Flutter-based game engine.