-
-
Notifications
You must be signed in to change notification settings - Fork 71
73 lines (58 loc) · 1.82 KB
/
talker_flutter.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
name: talker_flutter
on:
push:
paths:
- "packages/talker_flutter/**"
- ".github/workflows/talker_flutter.yaml"
pull_request:
paths:
- "packages/talker_flutter/**"
- ".github/workflows/talker_flutter.yaml"
jobs:
build:
defaults:
run:
working-directory: packages/talker_flutter
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-java@v4
with:
java-version: "12.x"
distribution: "zulu"
- uses: subosito/flutter-action@v2
with:
channel: "stable"
- name: Install Dependencies
run: flutter pub get
- name: Format
run: dart format --set-exit-if-changed .
- name: Analyze
run: flutter analyze --fatal-infos --fatal-warnings .
# - name: Run tests
# run: flutter test --no-pub --coverage
# - name: Check Code Coverage
# uses: VeryGoodOpenSource/[email protected]
# with:
# path: packages/talker_flutter/coverage/lcov.info
# min_coverage: 0
# - name: Upload coverage to Codecov
# uses: codecov/codecov-action@v1
# with:
# token: ${{ secrets.CODECOV_TOKEN }}
# - name: Build WEB
# run: |
# cd example
# flutter build web --release --web-renderer canvaskit
# - name: Deploy WEB
# run: |
# cd example/build/web
# git init
# git config --global user.email [email protected]
# git config --global user.name Stanislav Ilin
# git status
# git remote add origin https://${{secrets.commit_secret}}@github.com/Frezyx/talker.git
# git checkout -b gh-pages
# git add --all
# git commit -m "update"
# git push origin gh-pages -f