Skip to content

Commit 9c9b54e

Browse files
committed
👷 Improve all workflows
1 parent fda36dc commit 9c9b54e

File tree

4 files changed

+40
-38
lines changed

4 files changed

+40
-38
lines changed

.github/workflows/issue_labeler.yml

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,16 +2,15 @@ name: "Issue Labeler"
22

33
on:
44
issues:
5-
types: [opened]
5+
types: [ opened ]
66

77
jobs:
88
label:
99
runs-on: ubuntu-latest
10-
1110
steps:
12-
- name: Auto label
13-
uses: Renato66/auto-label@v2.1.2
14-
with:
15-
repo-token: "${{ secrets.GITHUB_TOKEN }}"
16-
ignore-comments: true
17-
default-labels: '["await triage"]'
11+
- name: Auto label
12+
uses: Renato66/auto-label@v2.2.0
13+
with:
14+
repo-token: ${{ secrets.GITHUB_TOKEN }}
15+
ignore-comments: true
16+
default-labels: '["await triage"]'

.github/workflows/publish.yml

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,21 +2,18 @@ name: Publish
22

33
on:
44
release:
5-
types: [published]
5+
types: [ published ]
66
workflow_dispatch:
77

88
jobs:
99
publish:
10-
1110
runs-on: ubuntu-latest
12-
1311
steps:
1412
- name: Checkout
1513
uses: actions/checkout@v1
1614
- name: Publish
17-
uses: sakebook/actions-flutter-pub-[email protected].0
15+
uses: k-paxian/dart-package-[email protected]
1816
with:
19-
credential: ${{ secrets.CREDENTIAL_JSON }}
20-
flutter_package: true
21-
skip_test: true
22-
dry_run: false
17+
credentialJson: ${{ secrets.CREDENTIAL_JSON }}
18+
flutter: true
19+
skipTests: true

.github/workflows/publishable.yml

Lines changed: 8 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -14,16 +14,13 @@ jobs:
1414
runs-on: ${{ matrix.os }}
1515
strategy:
1616
matrix:
17-
os: [macos-latest]
17+
os: [ ubuntu-latest ]
1818
steps:
19-
- uses: actions/checkout@v1
20-
- uses: actions/setup-java@v1
19+
- name: Checkout
20+
uses: actions/checkout@v1
21+
- uses: k-paxian/[email protected]
2122
with:
22-
java-version: '11.x'
23-
- uses: subosito/flutter-action@v1
24-
with:
25-
channel: 'stable'
26-
- run: dart --version
27-
- run: flutter --version
28-
- run: flutter pub get
29-
- run: flutter pub publish --dry-run
23+
credentialJson: ${{ secrets.CREDENTIAL_JSON }}
24+
dryRunOnly: true
25+
flutter: true
26+
skipTests: true

.github/workflows/runnable.yml

Lines changed: 20 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -14,34 +14,43 @@ jobs:
1414
runs-on: ${{ matrix.os }}
1515
strategy:
1616
matrix:
17-
os: [ubuntu-latest]
17+
os: [ ubuntu-latest ]
1818
steps:
1919
- uses: actions/checkout@v1
2020
- uses: actions/setup-java@v1
2121
with:
2222
java-version: '11.x'
23-
- uses: subosito/flutter-action@v1
23+
- uses: subosito/flutter-action@v2
2424
with:
2525
channel: 'stable'
26-
- run: dart --version
27-
- run: flutter --version
28-
- run: flutter pub get
29-
- run: flutter analyze lib example/lib
30-
- run: flutter test
26+
- name: Log Dart/Flutter versions
27+
run: |
28+
dart --version
29+
flutter --version
30+
- name: Prepare dependencies
31+
run: flutter pub get
32+
- name: Analyse the repo
33+
run: flutter analyze lib example/lib
34+
- name: Run tests
35+
run: flutter test
36+
- name: Generate docs
37+
run: |
38+
dart pub global activate dartdoc
39+
dart pub global run dartdoc .
3140
3241
test_iOS:
3342
needs: analyze
3443
name: Test iOS on ${{ matrix.os }}
3544
runs-on: ${{ matrix.os }}
3645
strategy:
3746
matrix:
38-
os: [macos-latest]
47+
os: [ macos-latest ]
3948
steps:
4049
- uses: actions/checkout@v1
4150
- uses: actions/setup-java@v1
4251
with:
4352
java-version: '11.x'
44-
- uses: subosito/flutter-action@v1
53+
- uses: subosito/flutter-action@v2
4554
with:
4655
channel: 'stable'
4756
- run: dart --version
@@ -55,13 +64,13 @@ jobs:
5564
runs-on: ${{ matrix.os }}
5665
strategy:
5766
matrix:
58-
os: [ubuntu-latest]
67+
os: [ ubuntu-latest ]
5968
steps:
6069
- uses: actions/checkout@v1
6170
- uses: actions/setup-java@v1
6271
with:
6372
java-version: '11.x'
64-
- uses: subosito/flutter-action@v1
73+
- uses: subosito/flutter-action@v2
6574
with:
6675
channel: 'stable'
6776
- run: dart --version

0 commit comments

Comments
 (0)