Merge branch 'main' of https://github.com/AlexTelon/FlexiCharge-Cross… #47
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |