Skip to content

Commit 2ceacac

Browse files
committed
add publishing checks
1 parent a0f5167 commit 2ceacac

File tree

2 files changed

+37
-1
lines changed

2 files changed

+37
-1
lines changed

.github/workflows/change-review.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717
- name: set up flutter environment
1818
uses: subosito/flutter-action@v2
1919
with:
20-
flutter-version: '2.5.3'
20+
flutter-version: '3.0.0'
2121

2222
- name: Install dependencies
2323
run: flutter pub get
Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
2+
name: Publish to Pub.dev
3+
4+
on:
5+
push:
6+
branched: ['master']
7+
8+
jobs:
9+
version:
10+
name: Code Checks
11+
runs-on: ubuntu-latest
12+
steps:
13+
- uses: actions/checkout@v2
14+
- name: set up flutter environment
15+
uses: subosito/flutter-action@v2
16+
with:
17+
flutter-version: '3.0.0'
18+
19+
- name: Install dependencies
20+
run: flutter pub get
21+
22+
- name: Run unit tests
23+
run: flutter test --coverage
24+
25+
# - name: Publish to Pub.dev
26+
# run: pub publish --dry-run
27+
28+
- name: push build status to Slack
29+
uses: 8398a7/action-slack@v3
30+
with:
31+
status: ${{ job.status }}
32+
fields: repo,message,commit,author,action,eventName,ref,workflow,job,took,pullRequest
33+
env:
34+
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}
35+
if: always()
36+

0 commit comments

Comments
 (0)