Skip to content

Commit 2b62a42

Browse files
authored
Merge pull request #51 from Flutterwave/chore/setup-ci
Chore/setup ci
2 parents df6b715 + 95858bf commit 2b62a42

File tree

1 file changed

+36
-0
lines changed

1 file changed

+36
-0
lines changed

.github/workflows/package-publish.yml

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)