Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
cmleite committed Feb 27, 2025
1 parent d2dac50 commit 4722a24
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 15 deletions.
19 changes: 7 additions & 12 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,20 +24,16 @@ jobs:
uses: actions/setup-dotnet@v1
with:
dotnet-version: 8.0.x
# Run build
- name: Build Windows
env:
DOTNET_CLI_TELEMETRY_OPTOUT: true
run: dotnet publish --configuration Release --self-contained --runtime win-x64 Cmf.CustomerPortal.Sdk.sln
- name: Build Linux
env:
DOTNET_CLI_TELEMETRY_OPTOUT: true
run: dotnet publish --configuration Release --self-contained --runtime linux-x64 Cmf.CustomerPortal.Sdk.sln

# Run dotnet restore
- name: Run dotnet restore
run: dotnet restore Cmf.CustomerPortal.Sdk.sln --configuration Release
# Run dotnet build
- name: Run dotnet build
run: dotnet build Cmf.CustomerPortal.Sdk.sln --no-restore --configuration Release
# Run tests with coverage
- name: Run Unit Tests with Coverage
run: |
dotnet test Cmf.CustomerPortal.Sdk.sln --no-restore --configuration Release \
dotnet test Cmf.CustomerPortal.Sdk.sln --no-build --no-restore --configuration Release \
--collect:"XPlat Code Coverage" \
--logger trx \
--results-directory TestResults
Expand All @@ -61,7 +57,6 @@ jobs:
path: code-coverage-results.md
- name: Write to Job Summary
run: cat code-coverage-results.md >> $GITHUB_STEP_SUMMARY

# Read version
- name: Read tool version
uses: QwerMike/xpath-action@v1
Expand Down
9 changes: 6 additions & 3 deletions .github/workflows/npm-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,18 +16,21 @@ jobs:
uses: actions/setup-dotnet@v1
with:
dotnet-version: 8.0.x
# Run dotnet restore
- name: Run dotnet restore
run: dotnet restore Cmf.CustomerPortal.Sdk.sln --configuration Release
# Run build
- name: Build Windows
env:
DOTNET_CLI_TELEMETRY_OPTOUT: true
run: dotnet publish --configuration Release --self-contained --runtime win-x64 Cmf.CustomerPortal.Sdk.sln
run: dotnet publish --no-restore --configuration Release --self-contained --runtime win-x64 Cmf.CustomerPortal.Sdk.sln
- name: Build Linux
env:
DOTNET_CLI_TELEMETRY_OPTOUT: true
run: dotnet publish --configuration Release --self-contained --runtime linux-x64 Cmf.CustomerPortal.Sdk.sln
run: dotnet publish --no-restore --configuration Release --self-contained --runtime linux-x64 Cmf.CustomerPortal.Sdk.sln
# Run Unit Tests
- name: Run Unit Tests
run: dotnet test Cmf.CustomerPortal.Sdk.sln --no-restore --configuration Release --collect:"XPlat Code Coverage" --logger trx
run: dotnet test Cmf.CustomerPortal.Sdk.sln --no-build --no-restore --configuration Release --collect:"XPlat Code Coverage" --logger trx
# Read version
- name: Read tool version
uses: QwerMike/xpath-action@v1
Expand Down

0 comments on commit 4722a24

Please sign in to comment.