Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
33 changes: 33 additions & 0 deletions .github/workflows/cicd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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:
Expand All @@ -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
1 change: 0 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ A Flutter-based game engine.

<p align="center">
<a title="Pub" href="https://pub.dev/packages/flame"><img src="https://img.shields.io/pub/v/flame.svg?style=popout"/></a>
<a title="Shorebird CI" href="https://console.shorebird.dev/ci"><img src="https://api.shorebird.dev/api/v1/github/flame-engine/flame/badge.svg"/></a>
<a title="Test" href="https://github.com/flame-engine/flame/actions?query=workflow%3Acicd+branch%3Amain"><img src="https://github.com/flame-engine/flame/actions/workflows/cicd.yml/badge.svg?branch=main&event=push"/></a>
<a title="Discord" href="https://discord.gg/pxrBmy4"><img src="https://img.shields.io/discord/509714518008528896.svg"/></a>
<a title="Melos" href="https://github.com/invertase/melos"><img src="https://img.shields.io/badge/maintained%20with-melos-f700ff.svg"/></a>
Expand Down
Loading