-
Notifications
You must be signed in to change notification settings - Fork 245
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
6d78f70
commit 0690b65
Showing
5 changed files
with
101 additions
and
7 deletions.
There are no files selected for viewing
8 changes: 6 additions & 2 deletions
8
.github/workflows/codeql.yml → .github/workflows/build-codeql.yml
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,84 @@ | ||
name: "build" | ||
run-name: Test indicators | ||
|
||
on: | ||
push: | ||
branches: ["main"] | ||
paths: | ||
- "src/**" | ||
|
||
pull_request: | ||
branches: ["main"] | ||
paths: | ||
- "src/**" | ||
- ".github/workflows/build-tests.yml" | ||
|
||
jobs: | ||
|
||
testing: | ||
name: test indicators | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
|
||
- name: Checkout repository | ||
uses: actions/checkout@v4 | ||
|
||
- name: Install .NET SDK | ||
uses: actions/setup-dotnet@v3 | ||
with: | ||
dotnet-version: "7.x" | ||
dotnet-quality: "ga" | ||
|
||
- name: Build solution | ||
run: > | ||
dotnet build | ||
--configuration Release | ||
--property:ContinuousIntegrationBuild=true | ||
-warnAsError | ||
- name: Test library | ||
run: > | ||
dotnet test | ||
--configuration Release | ||
--no-build | ||
--verbosity normal | ||
--logger trx | ||
--collect:"XPlat Code Coverage" | ||
--results-directory ./coverage | ||
- name: Update PR tests summary | ||
uses: bibipkins/[email protected] | ||
with: | ||
github-token: ${{ secrets.GITHUB_TOKEN }} | ||
results-path: ./coverage/**/*.trx | ||
coverage-path: ./coverage/**/coverage.cobertura.xml | ||
coverage-type: cobertura | ||
coverage-threshold: 95 | ||
|
||
- name: Code coverage summary | ||
uses: irongut/[email protected] | ||
with: | ||
filename: coverage/**/coverage.cobertura.xml | ||
badge: true | ||
thresholds: '95 98' | ||
fail_below_min: true | ||
format: markdown | ||
hide_branch_rate: false | ||
hide_complexity: false | ||
indicators: true | ||
output: both | ||
|
||
- name: Update PR coverage summmary | ||
uses: marocchino/sticky-pull-request-comment@v2 | ||
if: github.event_name == 'pull_request' | ||
with: | ||
recreate: true | ||
path: code-coverage-results.md | ||
|
||
- name: Save test results | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: test-results | ||
path: coverage | ||
if: ${{ always() }} |
7 changes: 5 additions & 2 deletions
7
.github/workflows/a11y.yml → .github/workflows/docs-test-a11y.yml
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
7 changes: 5 additions & 2 deletions
7
.github/workflows/links.yml → .github/workflows/docs-test-links.yml
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