Skip to content

Commit 197c3f1

Browse files
authored
Merge branch 'master' into stream-feed-v0.1.0
2 parents 28afc83 + e5c7675 commit 197c3f1

File tree

3 files changed

+56
-6
lines changed

3 files changed

+56
-6
lines changed

.github/workflows/build.yaml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,9 +43,6 @@ jobs:
4343

4444
- name: Check format
4545
run: melos run format
46-
47-
- name: Generate models
48-
run: melos run generate
4946

5047
- name: Analyze
5148
run: melos run analyze

.github/workflows/pana.yaml

Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
name: pana
2+
3+
env:
4+
ACTIONS_ALLOW_UNSECURE_COMMANDS: 'true'
5+
6+
on:
7+
pull_request:
8+
branches:
9+
- master
10+
push:
11+
branches:
12+
- master
13+
14+
jobs:
15+
faye_dart:
16+
runs-on: ubuntu-latest
17+
steps:
18+
- uses: actions/checkout@v2
19+
- uses: axel-op/dart-package-analyzer@v3
20+
id: analysis
21+
with:
22+
githubToken: ${{ secrets.GITHUB_TOKEN }}
23+
relativePath: packages/faye_dart
24+
- name: Check scores
25+
env:
26+
# NB: "analysis" is the id set above. Replace it with the one you used if different.
27+
TOTAL: ${{ steps.analysis.outputs.total }}
28+
TOTAL_MAX: ${{ steps.analysis.outputs.total_max }}
29+
run: |
30+
PERCENTAGE=$(( $TOTAL * 100 / $TOTAL_MAX ))
31+
if (( $PERCENTAGE < 80 ))
32+
then
33+
echo Score too low!
34+
exit 1
35+
fi
36+
stream_feed:
37+
runs-on: ubuntu-latest
38+
steps:
39+
- uses: actions/checkout@v2
40+
- uses: axel-op/dart-package-analyzer@v3
41+
id: analysis
42+
with:
43+
githubToken: ${{ secrets.GITHUB_TOKEN }}
44+
relativePath: packages/stream_feed
45+
- name: Check scores
46+
env:
47+
# NB: "analysis" is the id set above. Replace it with the one you used if different.
48+
TOTAL: ${{ steps.analysis.outputs.total }}
49+
TOTAL_MAX: ${{ steps.analysis.outputs.total_max }}
50+
run: |
51+
PERCENTAGE=$(( $TOTAL * 100 / $TOTAL_MAX ))
52+
if (( $PERCENTAGE < 90 ))
53+
then
54+
echo Score too low!
55+
exit 1
56+
fi

packages/stream_feed/.gitignore

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
# Ignoring generated files, as they pollute pull requests and can create merge conflicts
2-
31
# Miscellaneous
42
*.class
53
*.log
@@ -73,4 +71,3 @@ build/
7371
!**/ios/**/default.pbxuser
7472
!**/ios/**/default.perspectivev3
7573
!/packages/flutter_tools/test/data/dart_dependencies_test/**/.packages
76-
pana-*

0 commit comments

Comments
 (0)