Skip to content

Commit 9479d08

Browse files
author
lakscastro
committed
(#71) Add manual static check
1 parent a6ac3c2 commit 9479d08

3 files changed

Lines changed: 21 additions & 17 deletions

File tree

.github/workflows/build-docs.yaml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,14 @@ jobs:
1515

1616
steps:
1717
- uses: actions/checkout@v2
18+
- uses: subosito/flutter-action@v2
19+
with:
20+
flutter-version: "2.10.0"
21+
channel: "stable"
22+
- run: |
23+
flutter --version
24+
flutter pub get
25+
flutter analyze --fatal-infos
1826
1927
- name: Deploy docs
2028
uses: mhausenblas/mkdocs-deploy-gh-pages@master

.github/workflows/publish.yaml

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,24 @@
11
name: Publish new plugin version
22
on:
3-
workflow_run:
4-
workflows: ["Perform static code analysis through Dart CLI"]
5-
types:
6-
- completed
73
workflow_dispatch:
84
push:
95
branches:
106
- release
11-
- master
127

138
jobs:
149
publish:
1510
runs-on: ubuntu-latest
1611

1712
steps:
1813
- uses: actions/checkout@v2
19-
- uses: dart-lang/setup-dart@v1
20-
21-
- name: Run static dart analysis with fatal infos
22-
run: dart analyze --fatal-infos
14+
- uses: subosito/flutter-action@v2
15+
with:
16+
flutter-version: "2.10.0"
17+
channel: "stable"
18+
- run: |
19+
flutter --version
20+
flutter pub get
21+
flutter analyze --fatal-infos
2322
2423
- name: Create credentials file
2524
run: echo $PUB_CREDENTIALS > ~/pub-credentials.json
@@ -35,4 +34,4 @@ jobs:
3534
PUB_CREDENTIALS: ${{ secrets.PUB_CREDENTIALS }}
3635

3736
- name: Publish
38-
run: dart pub publish --dry-run
37+
run: dart pub publish --force

.github/workflows/static-analysis.yaml

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ on:
44
pull_request:
55
types: [opened, reopened, review_requested]
66
branches:
7-
- "release"
87
- "master"
98
push:
109
branches:
@@ -21,9 +20,7 @@ jobs:
2120
with:
2221
flutter-version: "2.10.0"
2322
channel: "stable"
24-
- run: flutter --version
25-
- name: Fetch packages
26-
run: flutter pub get
27-
28-
- name: Run static dart analysis with fatal infos
29-
run: flutter analyze --fatal-infos
23+
- run: |
24+
flutter --version
25+
flutter pub get
26+
flutter analyze --fatal-infos

0 commit comments

Comments
 (0)