-
Notifications
You must be signed in to change notification settings - Fork 0
77 lines (74 loc) · 2.38 KB
/
packages.yml
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
74
75
76
77
name: Dart CI
on:
push:
paths:
- ".github/workflows/**"
- "src/cli_gen/**"
- "src/cli_annotations/**"
pull_request:
paths:
- ".github/workflows/**"
- "src/cli_gen/**"
- "src/cli_annotations/**"
schedule:
- cron: "0 0 * * 0" # Run weekly checks
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
package:
- src/cli_gen
- src/cli_annotations
steps:
- uses: actions/checkout@v4
- uses: subosito/flutter-action@v2
with:
flutter-version: "3.19.x"
channel: "beta"
- name: Install dependencies
run: dart pub get
working-directory: ${{ matrix.package }}
- name: Run static analysis
run: dart analyze
working-directory: ${{ matrix.package }}
- name: Run code coverage
run: dart test --coverage="coverage"
working-directory: ${{ matrix.package }}
- name: Code coverage
run: dart run coverage:format_coverage --lcov --in=coverage --out=coverage/lcov.info --report-on=lib
working-directory: ${{ matrix.package }}
- name: Upload coverage reports to Codecov
uses: codecov/[email protected]
with:
token: ${{ secrets.CODECOV_TOKEN }}
slug: pattobrien/cli-gen
directory: ${{ matrix.package }}/coverage/
verbose: true
# dependency_bot:
# runs-on: ubuntu-latest
# if: github.event_name == 'schedule'
# strategy:
# matrix:
# package:
# - src/cli_gen
# - src/cli_annotations
# steps:
# - uses: actions/checkout@v2
# with:
# ref: "dependency_bot/${{ github.run_id }}"
# fetch-depth: 0
# - name: Setup Dart
# uses: dart-lang/setup-dart@v1
# - name: Upgrade dependencies
# run: cd ${{ matrix.package }} && dart pub upgrade
# - name: Create Pull Request
# uses: peter-evans/create-pull-request@v3
# with:
# commit-message: "Update dependencies for ${{ matrix.package }}"
# branch: "dependency_bot/${{ matrix.package }}"
# title: "Update dependencies for ${{ matrix.package }}"
# body: "This is an auto-generated PR with dependency updates."
# labels: "dependencies,auto-update"
# base: "main" # Change this to your default branch if not main
# signoff: false