Skip to content

Commit bf2c5b4

Browse files
committed
ci(pipeline): update build conditions for GitHub Actions
- Removes conditional checks for `build` environment variable on restore, build, and test steps. - Simplifies the test-reporter step condition to only check for pull request forks. - Streamlines the pipeline configuration for clearer execution flow.
1 parent 1e3513c commit bf2c5b4

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

.github/workflows/pipeline.yaml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -137,20 +137,17 @@ jobs:
137137
uses: actions/checkout@v4
138138

139139
- name: dotnet restore
140-
if: ${{ env.build == 'true' }}
141140
run: dotnet restore
142141

143142
- name: dotnet build
144-
if: ${{ env.build == 'true' }}
145143
run: dotnet build --no-restore --configuration Release /p:Version=${{env.GitVersion_SemVer}} /p:AssemblyVersion=${{env.GitVersion_AssemblySemFileVer}} /p:NuGetVersion=${{env.GitVersion_SemVer}}
146144

147145
- name: dotnet test
148-
if: ${{ env.build == 'true' }}
149146
run: dotnet test --no-build --configuration Release --verbosity normal
150147

151148
- name: test-reporter
152149
uses: dorny/test-reporter@v2
153-
if: ${{ env.build == 'true' && github.event.pull_request.head.repo.fork == false }}
150+
if: ${{ github.event.pull_request.head.repo.fork == false }}
154151
with:
155152
name: Test Results
156153
path: .artifacts/TestResults/*.trx

0 commit comments

Comments
 (0)