Skip to content

Commit 779c44a

Browse files
authored
ci: Update pipeline to use Melos (#80)
* ci: Update pipeline to use Melos * Bump to flame_lint 1.1.2 * Update format
1 parent e297f55 commit 779c44a

File tree

4 files changed

+33
-26
lines changed

4 files changed

+33
-26
lines changed

.github/workflows/cicd.yaml

Lines changed: 20 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -18,33 +18,38 @@ jobs:
1818
channel: 'stable'
1919
- uses: flame-engine/flame-dartdoc-action@v2
2020

21-
format:
21+
analyze:
2222
runs-on: ubuntu-latest
2323
steps:
24-
- uses: actions/checkout@v2
25-
- uses: subosito/flutter-action@v1
24+
- uses: actions/checkout@v3
25+
- uses: subosito/flutter-action@v2
26+
- uses: bluefireteam/melos-action@v3
27+
- name: "Analyze with latest stable"
28+
uses: invertase/github-action-dart-analyzer@v2.0.0
2629
with:
27-
channel: 'stable'
28-
- uses: flame-engine/flame-format-action@v1
30+
fatal-infos: true
2931

30-
analyze:
32+
format:
3133
runs-on: ubuntu-latest
3234
steps:
33-
- uses: actions/checkout@v2
34-
- uses: subosito/flutter-action@v1
35+
- uses: actions/checkout@v3
36+
- uses: subosito/flutter-action@v2
3537
with:
36-
channel: 'stable'
37-
- uses: flame-engine/flame-analyze-action@v2
38+
cache: true
39+
- uses: bluefireteam/melos-action@v3
40+
- name: Run format
41+
run: melos format-check
3842
# END LINTING STAGE
3943

4044
# BEGIN TESTING STAGE
4145
test:
42-
needs: [dartdoc, format, analyze]
4346
runs-on: ubuntu-latest
4447
steps:
45-
- uses: actions/checkout@v2
46-
- uses: subosito/flutter-action@v1
48+
- uses: actions/checkout@v3
49+
- uses: subosito/flutter-action@v2
4750
with:
48-
channel: 'stable'
49-
- uses: flame-engine/flame-test-action@v1
51+
cache: true
52+
- uses: bluefireteam/melos-action@v3
53+
- name: Run tests
54+
run: melos test
5055
# END TESTING STAGE

melos.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,12 +29,12 @@ scripts:
2929
description: Run `flutter analyze` for all packages.
3030

3131
format:
32-
run: melos exec flutter format . --fix
33-
description: Run `flutter format` for all packages.
32+
run: melos exec dart format . --fix
33+
description: Run `dart format` for all packages.
3434

3535
format-check:
36-
run: melos exec flutter format . --set-exit-if-changed
37-
description: Run `flutter format` checks for all packages.
36+
run: melos exec dart format . --set-exit-if-changed
37+
description: Run `dart format` checks for all packages.
3838

3939
dartdoc:
4040
run: melos exec flutter pub run dartdoc

packages/tiled/LICENSE

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
The MIT License (MIT)
1+
MIT License
22

3-
Copyright (c) <year> <copyright holders>
3+
Copyright (c) 2021 Blue Fire
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal
@@ -9,13 +9,14 @@ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
99
copies of the Software, and to permit persons to whom the Software is
1010
furnished to do so, subject to the following conditions:
1111

12-
The above copyright notice and this permission notice shall be included in
13-
all copies or substantial portions of the Software.
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
1414

1515
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
1616
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
1717
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
1818
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
1919
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21-
THE SOFTWARE.
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.
22+

packages/tiled/pubspec.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ homepage: https://github.com/flame-engine/tiled.dart
55

66
environment:
77
sdk: ">=2.18.0 <3.0.0"
8+
89
dependencies:
910
archive: ^3.3.0
1011
collection: ^1.16.0
@@ -15,6 +16,6 @@ dependencies:
1516

1617
dev_dependencies:
1718
dartdoc: ^6.0.1
18-
flame_lint: ^1.1.1
19+
flame_lint: ^1.1.2
1920
flutter_test:
2021
sdk: flutter

0 commit comments

Comments
 (0)