Skip to content

Commit 96af23a

Browse files
committed
wip: Update workflows
1 parent 70c944e commit 96af23a

File tree

3 files changed

+76
-19
lines changed

3 files changed

+76
-19
lines changed

.github/workflows/build.yml

Lines changed: 48 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,21 +2,63 @@ name: build
22

33
on:
44
push:
5-
branches: [main]
5+
branches: [main, dev]
66
pull_request:
77
branches: [main]
88

99
jobs:
10+
build-linux:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- uses: actions/checkout@v3
14+
- uses: subosito/flutter-action@v2
15+
with:
16+
flutter-version: "3.19.2"
17+
channel: "stable"
18+
- run: |
19+
sudo apt-get update
20+
sudo apt-get install -y clang cmake ninja-build pkg-config libgtk-3-dev liblzma-dev
21+
sudo apt-get install -y keybinder-3.0
22+
- uses: bluefireteam/melos-action@v3
23+
- working-directory: ./packages/auto_updater/example
24+
run: |
25+
flutter build linux --release
26+
1027
build-macos:
1128
runs-on: macos-latest
1229
steps:
13-
- uses: actions/checkout@v2
30+
- uses: actions/checkout@v3
1431
- uses: subosito/flutter-action@v2
15-
- run: flutter config --enable-macos-desktop
16-
- run: cd example && flutter build macos -v
32+
with:
33+
flutter-version: "3.19.2"
34+
channel: "stable"
35+
- uses: bluefireteam/melos-action@v3
36+
- working-directory: ./packages/auto_updater/example
37+
run: |
38+
flutter build macos --release
39+
40+
build-web:
41+
runs-on: macos-latest
42+
steps:
43+
- uses: actions/checkout@v3
44+
- uses: subosito/flutter-action@v2
45+
with:
46+
flutter-version: "3.19.2"
47+
channel: "stable"
48+
- uses: bluefireteam/melos-action@v3
49+
- working-directory: ./packages/auto_updater/example
50+
run: |
51+
flutter build web --release
52+
1753
build-windows:
1854
runs-on: windows-latest
1955
steps:
20-
- uses: actions/checkout@v2
56+
- uses: actions/checkout@v3
2157
- uses: subosito/flutter-action@v2
22-
- run: cd example && flutter build windows -v
58+
with:
59+
flutter-version: "3.19.2"
60+
channel: "stable"
61+
- uses: bluefireteam/melos-action@v3
62+
- working-directory: ./packages/auto_updater/example
63+
run: |
64+
flutter build windows --release

.github/workflows/lint.yml

Lines changed: 8 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name: lint
22

33
on:
44
push:
5-
branches: [main]
5+
branches: [main, dev]
66
pull_request:
77
branches: [main]
88

@@ -13,24 +13,19 @@ jobs:
1313
- uses: actions/checkout@v3
1414
- uses: subosito/flutter-action@v2
1515
with:
16+
flutter-version: "3.19.2"
1617
channel: "stable"
17-
- run: flutter analyze --fatal-infos
18+
- uses: bluefireteam/melos-action@v3
19+
- run: melos run analyze
1820

1921
format:
2022
runs-on: ubuntu-latest
2123
steps:
2224
- uses: actions/checkout@v3
2325
- uses: subosito/flutter-action@v2
2426
with:
27+
flutter-version: "3.19.2"
2528
channel: "stable"
26-
- run: dart format . --fix --set-exit-if-changed
27-
28-
dependency_validator:
29-
runs-on: ubuntu-latest
30-
steps:
31-
- uses: actions/checkout@v3
32-
- uses: subosito/flutter-action@v2
33-
with:
34-
channel: "stable"
35-
- run: flutter pub get
36-
- run: flutter pub run dependency_validator
29+
cache: true
30+
- uses: bluefireteam/melos-action@v3
31+
- run: melos run format-check

.github/workflows/test.yml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
name: test
2+
3+
on:
4+
push:
5+
branches: [main, dev]
6+
pull_request:
7+
branches: [main]
8+
9+
jobs:
10+
test:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- uses: actions/checkout@v3
14+
- uses: subosito/flutter-action@v2
15+
with:
16+
flutter-version: "3.19.2"
17+
channel: "stable"
18+
cache: true
19+
- uses: bluefireteam/melos-action@v3
20+
- run: melos run test --no-select

0 commit comments

Comments
 (0)