-
Notifications
You must be signed in to change notification settings - Fork 1
55 lines (43 loc) · 1.47 KB
/
coverage.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
# This is a basic workflow to help get unit test coverage factor for each file
name: Analyze test coverage
# Controls when the workflow will run
on:
pull_request:
branches: [ "master" ]
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
jobs:
coverage:
outputs:
output1: ${{ steps.coverage.outputs.results }}
# output2: ${{ steps.step2.outputs.test }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Setup Flutter SDK
uses: flutter-actions/setup-flutter@v2
# - uses: subosito/flutter-action@v2
with:
channel: 'stable'
version: 3.13.9
# - run: |
# sudo apt-get update -y
# sudo apt-get install -y ninja-build libgtk-3-dev
- name: Clearing project
run: flutter clean
- name: Install dependencies
run: flutter pub upgrade
- name: Analyze test coverage
id: coverage
run: |
chmod +x ./.github/workflows/coverage.sh
./.github/workflows/coverage.sh
# Your project will need to have tests in test/ and a dependency on
# package:test for this step to succeed. Note that Flutter projects will
# want to change this to 'flutter test'.
# - name: Run tests
# run: flutter test
# - name: Configure linux desctop
# run: flutter config --enable-linux-desktop
# - name: Build linux
# run: flutter build linux