Skip to content

Commit 7f52ef2

Browse files
committed
Refactor CI pipeline: remove coverage steps and upload test results
1 parent 187c838 commit 7f52ef2

1 file changed

Lines changed: 1 addition & 68 deletions

File tree

.github/workflows/ci.yml

Lines changed: 1 addition & 68 deletions
Original file line numberDiff line numberDiff line change
@@ -107,71 +107,8 @@ jobs:
107107
path: src
108108

109109
- name: Run ${{ matrix.test-project.name }}
110-
run: dotnet test ${{ matrix.test-project.path }} -c Release --no-build --verbosity normal --logger "trx;LogFileName=test-results.trx"
110+
run: dotnet test ${{ matrix.test-project.path }} -c Release --no-build --verbosity normal
111111

112-
- name: Upload test results
113-
uses: actions/upload-artifact@v4
114-
if: always()
115-
with:
116-
name: test-results-${{ matrix.test-project.name }}
117-
path: ${{ matrix.test-project.path }}/TestResults/test-results.trx
118-
retention-days: 7
119-
120-
coverage:
121-
name: Code Coverage
122-
runs-on: ubuntu-latest
123-
needs: build
124-
125-
steps:
126-
- name: Checkout
127-
uses: actions/checkout@v4
128-
129-
- name: Setup .NET SDK
130-
uses: actions/setup-dotnet@v4
131-
with:
132-
dotnet-version: '10.0.x'
133-
134-
- name: Cache NuGet packages
135-
uses: actions/cache@v4
136-
with:
137-
path: ~/.nuget/packages
138-
key: ${{ runner.os }}-nuget-${{ hashFiles('**/*.csproj', '**/Directory.Packages.props') }}
139-
restore-keys: |
140-
${{ runner.os }}-nuget-
141-
142-
- name: Download build artifacts
143-
uses: actions/download-artifact@v4
144-
with:
145-
name: build-output
146-
path: src
147-
148-
- name: Run tests with coverage
149-
run: |
150-
dotnet test src/FSH.Framework.slnx -c Release --no-build \
151-
--collect:"XPlat Code Coverage" \
152-
--results-directory ./coverage
153-
154-
- name: Install ReportGenerator
155-
run: dotnet tool install -g dotnet-reportgenerator-globaltool
156-
157-
- name: Generate coverage report
158-
run: |
159-
reportgenerator \
160-
-reports:"./coverage/**/coverage.cobertura.xml" \
161-
-targetdir:"./coverage/report" \
162-
-reporttypes:"Cobertura;TextSummary"
163-
164-
- name: Upload coverage report
165-
uses: actions/upload-artifact@v4
166-
with:
167-
name: coverage-report
168-
path: ./coverage/report
169-
retention-days: 7
170-
171-
- name: Display coverage summary
172-
run: cat ./coverage/report/Summary.txt
173-
174-
# Build and push dev containers on develop branch
175112
publish-dev-containers:
176113
name: Publish Dev Containers
177114
runs-on: ubuntu-latest
@@ -225,7 +162,6 @@ jobs:
225162
docker push ghcr.io/${{ github.repository_owner }}/fsh-playground-blazor:dev-${{ github.sha }}
226163
docker push ghcr.io/${{ github.repository_owner }}/fsh-playground-blazor:dev-latest
227164
228-
# Publish NuGet packages and release containers on main branch (tags or manual)
229165
publish-release:
230166
name: Publish Release (NuGet + Containers)
231167
runs-on: ubuntu-latest
@@ -295,9 +231,6 @@ jobs:
295231
- name: Pack CLI Tool
296232
run: dotnet pack src/Tools/CLI/FSH.CLI.csproj -c Release --no-build -o ./nupkgs -p:PackageVersion=${{ steps.version.outputs.version }}
297233

298-
- name: List packages
299-
run: ls -la ./nupkgs
300-
301234
- name: Push to NuGet.org
302235
run: dotnet nuget push "./nupkgs/*.nupkg" --api-key ${{ secrets.NUGET_API_KEY }} --source https://api.nuget.org/v3/index.json --skip-duplicate
303236

0 commit comments

Comments
 (0)