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