Skip to content

Commit 0e9618f

Browse files
committed
Update ci.yml
1 parent be9489c commit 0e9618f

File tree

1 file changed

+10
-29
lines changed

1 file changed

+10
-29
lines changed

.github/workflows/ci.yml

Lines changed: 10 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,7 @@ jobs:
177177
name: 'Appx Packages (${{ env.CONFIGURATION }}, ${{ env.ARCHITECTURE }})'
178178
path: ${{ env.ARTIFACTS_STAGING_DIR }}
179179

180-
test:
180+
axe-test:
181181

182182
if: github.repository_owner == 'files-community' && always()
183183

@@ -264,20 +264,21 @@ jobs:
264264

265265
- name: Checkout the repository
266266
uses: actions/checkout@v4
267-
- name: Setup MSBuild
268-
uses: microsoft/setup-msbuild@v2
267+
# - name: Setup MSBuild
268+
# uses: microsoft/setup-msbuild@v2
269269
- name: Setup .NET
270270
uses: actions/setup-dotnet@v4
271271
with:
272272
global-json-file: global.json
273273

274+
# - name: Restore Files
275+
# shell: pwsh
276+
# run: |
277+
# dotnet restore $env:UNIT_TESTS_PROJECT_PATH
278+
274279
- name: Build unit tests
275280
run: |
276-
msbuild $env:UNIT_TESTS_PROJECT_PATH `
277-
-t:Build `
278-
-p:Configuration=$env:CONFIGURATION `
279-
-p:Platform=$env:PLATFORM `
280-
-v:quiet
281+
dotnet build $env:UNIT_TESTS_PROJECT_PATH -c $env:CONFIGURATION -a $env:PLATFORM -v quiet
281282
282283
# Retry the tests if first attempt fails
283284
- name: Run unit tests
@@ -287,24 +288,4 @@ jobs:
287288
max_attempts: 2
288289
shell: pwsh
289290
command: |
290-
dotnet test $env:TESTS_ASSEMBLY_DIR\**\Files.UnitTests.dll`
291-
292-
# - name: Generate markdown from the tests result
293-
# shell: pwsh
294-
# run: |
295-
# . './scripts/Convert-TrxToMarkdown.ps1' `
296-
# -Source "$env:TESTS_ASSEMBLY_DIR\testResults.trx" `
297-
# -Destination "$env:TESTS_ASSEMBLY_DIR\testResults.md"
298-
# env:
299-
# PULL_REQUEST_ID: ${{ github.event.pull_request_id }}
300-
301-
# - name: Display the markdown on the output (temp)
302-
# shell: pwsh
303-
# run: |
304-
# Get-Content $env:TESTS_ASSEMBLY_DIR\testResults.md
305-
306-
# - name: Publish tests result
307-
# uses: marocchino/sticky-pull-request-comment@v2
308-
# with:
309-
# header: test-result
310-
# path: '${{ env.TESTS_ASSEMBLY_DIR }}\testResults.md'
291+
dotnet test $env:TESTS_ASSEMBLY_DIR\**\Files.App.UnitTests.dll`

0 commit comments

Comments
 (0)