-
-
Notifications
You must be signed in to change notification settings - Fork 94
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: Migrate building codebase to GitHub Actions (#1847)
- Loading branch information
1 parent
10ac4dc
commit a496ca5
Showing
4 changed files
with
40 additions
and
60 deletions.
There are no files selected for viewing
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,40 @@ | ||
name: CI - Code | ||
|
||
on: | ||
workflow_dispatch: | ||
pull_request: | ||
paths: | ||
- .github/workflows/ci-code.yml | ||
- src/** | ||
|
||
jobs: | ||
verify_codebase: | ||
name: Verify Codebase | ||
runs-on: ubuntu-latest | ||
steps: | ||
# Checkout code | ||
- name: Checkout Code | ||
uses: actions/checkout@v2 | ||
|
||
# Install .NET | ||
- name: Install .NET | ||
uses: actions/setup-dotnet@v1 | ||
with: | ||
dotnet-version: '6.0.x' # SDK Version to use; x will use the latest version of the 3.1 channel | ||
|
||
# Build Solution | ||
- name: Build Solution | ||
run: dotnet build src/Promitor.sln --configuration release | ||
|
||
# Run Automated Tests | ||
- name: Run Unit Tests | ||
run: dotnet test src/Promitor.Tests.Unit/Promitor.Tests.Unit.csproj --logger "trx;LogFileName=test-results.trx" | ||
|
||
# Provide Unit Test Results | ||
- name: Report Unit Test Results | ||
uses: dorny/test-reporter@v1 | ||
if: success() || failure() | ||
with: | ||
name: .NET Unit Tests | ||
path: src/**/test-results.trx | ||
reporter: dotnet-trx |
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 was deleted.
Oops, something went wrong.