Merge pull request #34 from RevolveNTNU/feature/support-half-aka-float16 #139
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: Build & Test | |
on: | |
push: | |
branches: [ tribe ] | |
pull_request: | |
branches: [ tribe ] | |
jobs: | |
build-and-test: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Setup .NET | |
uses: actions/setup-dotnet@v1 | |
with: | |
dotnet-version: 6.0.x | |
- name: Restore dependencies | |
run: dotnet restore | |
- name: Build | |
run: dotnet build --no-restore | |
- name: Test | |
run: dotnet test --no-build --verbosity normal --logger "trx;LogFileName=test-results.trx" | |
- name : coverlet | |
uses: b3b00/[email protected] | |
with: | |
testProject: 'RevolveUavcanTest/RevolveUavcanTest.csproj' | |
output: 'lcov.info' | |
outputFormat: 'lcov' | |
excludes: '[program]*,[test]test.*' | |
- uses: actions/upload-artifact@v2 | |
if: ${{ always() }} | |
with: | |
name: test_report | |
path: /home/runner/work/RevolveUavcan/RevolveUavcan/RevolveUavcanTest/TestResults/test-results.trx | |
- uses: actions/upload-artifact@v2 | |
if: ${{ always() }} | |
with: | |
name: coverage_report | |
path: /home/runner/work/RevolveUavcan/RevolveUavcan/RevolveUavcanTest/lcov.info | |
- uses: coverallsapp/[email protected] | |
with: | |
github-token: ${{secrets.GITHUB_TOKEN }} | |
path-to-lcov: /home/runner/work/RevolveUavcan/RevolveUavcan/RevolveUavcanTest/lcov.info | |
- name: Test Reporter | |
uses: dorny/[email protected] | |
if: ${{ always() }} | |
with: | |
name: Test Report # Name of the check run which will be created | |
path: /home/runner/work/RevolveUavcan/RevolveUavcan/RevolveUavcanTest/TestResults/test-results.trx # Path to test results | |
reporter: dotnet-trx # Format of test results |