Skip to content

Commit 57b54d8

Browse files
authored
chore: Bring back GitHub CI (#3903)
Since we can't see the results clearly of shorebird CI, I propose we bring back the GitHub one.
1 parent 3d58c9a commit 57b54d8

2 files changed

Lines changed: 33 additions & 1 deletion

File tree

.github/workflows/cicd.yml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,20 @@ on:
77
pull_request:
88
types: [opened, reopened, synchronize]
99

10+
1011
env:
1112
FLUTTER_MIN_VERSION: '3.41.0'
1213

1314
jobs:
1415
# BEGIN LINTING STAGE
16+
format:
17+
runs-on: ubuntu-latest
18+
steps:
19+
- uses: actions/checkout@v4
20+
- uses: subosito/flutter-action@v2
21+
- uses: bluefireteam/melos-action@v3
22+
- run: melos run format-check
23+
1524
analyze:
1625
runs-on: ubuntu-latest
1726
steps:
@@ -25,6 +34,17 @@ jobs:
2534
with:
2635
fatal-infos: true
2736

37+
analyze-latest:
38+
runs-on: ubuntu-latest
39+
steps:
40+
- uses: actions/checkout@v4
41+
- uses: subosito/flutter-action@v2
42+
- uses: bluefireteam/melos-action@v3
43+
- name: "Analyze with latest stable"
44+
uses: invertase/github-action-dart-analyzer@v3
45+
with:
46+
fatal-infos: true
47+
2848
markdown-lint:
2949
runs-on: ubuntu-latest
3050
steps:
@@ -49,3 +69,16 @@ jobs:
4969
- name: Run DCM
5070
run: dcm analyze .
5171
# END LINTING STAGE
72+
73+
# BEGIN TESTING STAGE
74+
test:
75+
runs-on: ubuntu-latest
76+
steps:
77+
- uses: actions/checkout@v4
78+
- uses: subosito/flutter-action@v2
79+
with:
80+
cache: true
81+
- uses: bluefireteam/melos-action@v3
82+
- name: Run tests
83+
run: melos test
84+
# END TESTING STAGE

README.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@ A Flutter-based game engine.
1818

1919
<p align="center">
2020
<a title="Pub" href="https://pub.dev/packages/flame"><img src="https://img.shields.io/pub/v/flame.svg?style=popout"/></a>
21-
<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>
2221
<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>
2322
<a title="Discord" href="https://discord.gg/pxrBmy4"><img src="https://img.shields.io/discord/509714518008528896.svg"/></a>
2423
<a title="Melos" href="https://github.com/invertase/melos"><img src="https://img.shields.io/badge/maintained%20with-melos-f700ff.svg"/></a>

0 commit comments

Comments
 (0)