-
Notifications
You must be signed in to change notification settings - Fork 0
33 lines (30 loc) · 834 Bytes
/
dart.yml
File metadata and controls
33 lines (30 loc) · 834 Bytes
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
name: Dart CI
on:
push:
# branches: [main]
tags:
- '*'
pull_request:
branches: [main]
workflow_dispatch:
jobs:
dart-ci:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: dart-lang/setup-dart@v1
- name: Install dependencies
run: dart pub get
- name: Check format
run: dart format --output=none --set-exit-if-changed .
- name: Analyze
run: dart analyze
- name: Run tests
run: |
dart test --coverage=coverage
dart pub global activate coverage
dart run coverage:format_coverage --report-on=lib --lcov -i coverage/test -o coverage/lcov.info
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v5
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}