Skip to content

Commit 771cbc6

Browse files
committed
chore: add CI workflow
1 parent 829a409 commit 771cbc6

File tree

1 file changed

+39
-0
lines changed

1 file changed

+39
-0
lines changed

.github/workflows/ci.yml

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
name: Build
2+
3+
on:
4+
push:
5+
branches: [ main ]
6+
pull_request:
7+
branches: [ main ]
8+
merge_group:
9+
branches: [ main ]
10+
11+
jobs:
12+
build:
13+
strategy:
14+
matrix:
15+
os: [ubuntu-latest, windows-latest, macos-latest]
16+
runs-on: ${{ matrix.os }}
17+
18+
steps:
19+
- uses: actions/checkout@v3
20+
- uses: dart-lang/setup-dart@v1
21+
22+
- name: Install dependencies
23+
run: dart pub get
24+
25+
- name: Verify formatting
26+
run: dart format --output=none --set-exit-if-changed .
27+
28+
- name: Analyze project source
29+
run: dart analyze
30+
31+
- name: Run tests with coverage
32+
run: dart run coverage:test_with_coverage
33+
34+
- uses: codecov/codecov-action@v3
35+
with:
36+
token: ${{ secrets.CODECOV_TOKEN }}
37+
file: coverage/lcov.info
38+
name: Upload to codecov.io
39+
verbose: true

0 commit comments

Comments
 (0)