Code Coverage #10
This file contains hidden or 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: Code Coverage | |
| on: | |
| workflow_dispatch: | |
| schedule: | |
| - cron: '0 1 * * 5' | |
| permissions: | |
| contents: read | |
| packages: read | |
| jobs: | |
| cover: | |
| runs-on: windows-latest | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v5 | |
| with: | |
| submodules: 'true' | |
| - name: Restore dependencies | |
| run: | | |
| nuget sources add -username Open-Systems-Pharmacology -password ${{ secrets.GITHUB_TOKEN }} -name OSP-GitHub-Packages -source "https://nuget.pkg.github.com/Open-Systems-Pharmacology/index.json" | |
| nuget restore | |
| - name: Build | |
| run: dotnet build InstallationValidator.sln /p:Version=12.2.9999 | |
| - name: Cover and report | |
| uses: Open-Systems-Pharmacology/Workflows/.github/actions/dotCover@main | |
| with: | |
| xml-configuration: dotcover.xml | |
| token: ${{ secrets.CODECOV_TOKEN }} |