Skip to content

Commit 0199eec

Browse files
committed
👷 Improve workflows
1 parent 0ebd8e0 commit 0199eec

File tree

2 files changed

+18
-21
lines changed

2 files changed

+18
-21
lines changed

.github/workflows/publishable.yml

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,18 +7,20 @@ on:
77
pull_request:
88
branches:
99
- main
10+
paths:
11+
- "**.md"
12+
- "**.yaml"
13+
- "**.yml"
1014

1115
jobs:
12-
dry_run:
13-
name: Dry run publish on ${{ matrix.os }}
14-
runs-on: ${{ matrix.os }}
15-
strategy:
16-
matrix:
17-
os: [ ubuntu-latest ]
16+
publish-dry-run:
17+
name: Publish dry-run with packages
18+
runs-on: ubuntu-latest
1819
steps:
1920
- uses: actions/checkout@v3
2021
- uses: k-paxian/dart-package-publisher@master
2122
with:
2223
credentialJson: 'MockCredentialJson'
2324
flutter: true
2425
dryRunOnly: true
26+
skipTests: true

.github/workflows/runnable.yml

Lines changed: 10 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@ on:
77
pull_request:
88
branches:
99
- main
10+
paths-ignore:
11+
- "**.md"
1012

1113
jobs:
1214
analyze:
@@ -41,42 +43,35 @@ jobs:
4143
4244
test_iOS:
4345
needs: analyze
44-
name: Test iOS on ${{ matrix.os }}
45-
runs-on: ${{ matrix.os }}
46-
strategy:
47-
matrix:
48-
os: [ macos-latest ]
46+
name: Test iOS
47+
runs-on: macos-latest
4948
steps:
5049
- uses: actions/checkout@v3
5150
- uses: actions/setup-java@v3
5251
with:
5352
distribution: 'adopt'
5453
java-version: '11.x'
55-
- uses: subosito/flutter-action@v2
54+
- uses: subosito/flutter-action@v2.8.0
5655
with:
57-
architecture: x64
58-
channel: 'stable'
56+
channel: stable
5957
- run: dart --version
6058
- run: flutter --version
6159
- run: flutter pub get
6260
- run: cd example; flutter build ios --no-codesign
6361

6462
test_android:
6563
needs: analyze
66-
name: Test Android on ${{ matrix.os }}
67-
runs-on: ${{ matrix.os }}
68-
strategy:
69-
matrix:
70-
os: [ ubuntu-latest ]
64+
name: Test Android
65+
runs-on: ubuntu-latest
7166
steps:
7267
- uses: actions/checkout@v3
7368
- uses: actions/setup-java@v3
7469
with:
7570
distribution: 'adopt'
7671
java-version: '11.x'
77-
- uses: subosito/flutter-action@v2
72+
- uses: subosito/flutter-action@v2.8.0
7873
with:
79-
channel: 'stable'
74+
channel: stable
8075
- run: dart --version
8176
- run: flutter --version
8277
- run: flutter pub get

0 commit comments

Comments
 (0)