Skip to content

both identities

both identities #68

Workflow file for this run

# This workflow will install Python dependencies, run pre-commit checks, and run tests with a single version of Python
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions
name: Unit tests
on:
workflow_call:
push:
branches: [ main, 0.x ]
jobs:
unit-tests:
runs-on: ubuntu-latest
steps:
- name: Check out code
uses: actions/checkout@v2
- name: Set up .NET 6.0
id: dotnet-setup
uses: actions/setup-dotnet@v3
with:
dotnet-version: 6.0
- name: use .NET 6.0
run: |
dotnet new globaljson --sdk-version '${{ steps.dotnet-setup.outputs.dotnet-version }}'
- name: Install dependencies
run: |
dotnet restore
- name: Run unit tests
run: |
dotnet test --filter "Category!=Integration" /p:AltCover=true
- name: Save coverage report
uses: actions/upload-artifact@v2
with:
name: coverage.xml
path: /home/runner/work/firebolt-net-sdk/firebolt-net-sdk/FireboltDotNetSdk.Tests/coverage.xml
coverage:
needs: [unit-tests]
runs-on: ubuntu-latest
steps:
- uses: actions/download-artifact@v2
with:
name: coverage.xml
- name: Fix file paths
run: |
sed -i -e "s/\/home\/runner\/work\/firebolt-net-sdk\/firebolt-net-sdk\///g" coverage.xml
- name: Report
uses: 5monkeys/cobertura-action@v13
with:
minimum_coverage: 80
fail_below_threshold: true
show_class_names: true
show_missing: true
link_missing_lines: true
only_changed_files: true