-
Notifications
You must be signed in to change notification settings - Fork 7
41 lines (28 loc) · 965 Bytes
/
tests.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
name: test-flexicharge-cross-platform
# Controls when the workflow will run
on:
# Triggers the workflow on push or pull request events but only for the "main" branch
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
jobs:
drive:
# The type of runner that the job will run on
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v1
- name: Start Flutter environment
uses: subosito/flutter-action@v1
- name: Install junitreport package
run: dart pub global activate junitreport
- name: Perform tests
run: flutter test --machine | tojunit > test-report.xml
- name: Generate test report
uses: mikepenz/action-junit-report@v3
if: always() # always run even if the previous step fails
with:
report_paths: test-report.xml