feat: ability to import using option #67
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
on: | |
push: | |
branches: | |
- main | |
tags-ignore: | |
- '**' | |
paths: | |
- '.github/workflows/build.yml' | |
- 'global.json' | |
- 'Directory.Build.props' | |
- 'InfrastructureCli.sln' | |
- 'src/**' | |
- 'test/**' | |
name: Build | |
jobs: | |
build: | |
name: Build | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout Repository | |
uses: actions/checkout@v3 | |
- name: Install .NET SDK | |
uses: actions/setup-dotnet@v3 | |
- name: Restore Dependencies | |
run: dotnet restore InfrastructureCli.sln --locked-mode | |
- name: Run Project Tests | |
run: dotnet test InfrastructureCli.sln --no-restore -c Debug --collect:"XPlat Code Coverage" --results-directory ./TestResults -- DataCollectionRunSettings.DataCollectors.DataCollector.Configuration.Format=opencover | |
- name: Publish Coverage Results | |
uses: codacy/codacy-coverage-reporter-action@v1 | |
with: | |
project-token: ${{ secrets.CODACY_PROJECT_TOKEN }} | |
coverage-reports: ./TestResults/**/*.xml |