Skip to content

Commit

Permalink
Merge pull request #47 from microsoft/updateActionsVersions
Browse files Browse the repository at this point in the history
Updated GH actions versions.
  • Loading branch information
azchohfi committed Jun 8, 2024
2 parents 3e179d6 + 71df8d9 commit 56d71ef
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ jobs:
with:
fetch-depth: 0
- name: Setup .NET
uses: actions/setup-dotnet@v3
uses: actions/setup-dotnet@v4
with:
dotnet-version: 8.0.x
- name: Install and Configure Keyring
Expand Down Expand Up @@ -56,7 +56,7 @@ jobs:
run: dotnet test MSStore.CLI.sln --no-restore /p:Configuration=Release --logger trx & wait
- name: Publish test results
if: ${{ !env.ACT }} && (success() || failure())
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: test-results-${{ matrix.os }}
path: MSStore.CLI.UnitTests/TestResults/*.trx
Expand All @@ -66,17 +66,17 @@ jobs:
run: reportgenerator "-reports:${{ github.workspace }}/**/*coverage.*.cobertura.xml" "-targetdir:${{ github.workspace }}/report" "-reporttypes:Cobertura" "-filefilters:-*GenerationContext*.g.cs"
- name: Publish code coverage results
if: ${{ !env.ACT }}
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: Cobertura
name: Cobertura-${{ matrix.os }}
path: ${{ github.workspace }}/report/Cobertura.xml
# TODO: Publish github comment with code coverage
- name: Pack NuGet
if: ${{ matrix.os == 'ubuntu-latest' }}
run: dotnet pack MSStore.API --no-build -c Release
- name: Upload Artifact - NuGet
if: ${{ matrix.os == 'ubuntu-latest' && !env.ACT }}
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: NuGet
path: MSStore.API/bin/Release/*.nupkg
Expand Down Expand Up @@ -107,12 +107,12 @@ jobs:
with:
fetch-depth: 0
- name: Setup .NET
uses: actions/setup-dotnet@v3
uses: actions/setup-dotnet@v4
with:
dotnet-version: 8.0.x
- name: Add msbuild to PATH
if: ${{ matrix.os == 'windows-latest' }}
uses: microsoft/setup-msbuild@v1.3
uses: microsoft/setup-msbuild@v2
- name: Install NBGV tool
run: dotnet tool install --tool-path . nbgv
- name: Set Version
Expand Down Expand Up @@ -142,13 +142,13 @@ jobs:
run: ."C:\Program Files (x86)\Windows Kits\10\App Certification Kit\SignTool.exe" sign /fd SHA256 /a /f .\MSStore.CLI.MSIX\MSStore.CLI.MSIX_TemporaryKey.pfx ${{ github.workspace }}/MSStore.CLI.MSIX/AppPackages/${{ matrix.dotnet-arch }}/MSStore.CLI.MSIX_${{ env.GitBuildVersionSimple }}.0_${{ matrix.dotnet-arch }}_Test.msix
- name: Upload Artifact - CLI
if: ${{ !env.ACT }}
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: CLI-${{ matrix.dotnet-os }}-${{ matrix.dotnet-arch }}
path: ${{ github.workspace }}/MSStore.CLI/bin/Release/${{ matrix.dotnet-framework }}/${{ matrix.dotnet-os }}-${{ matrix.dotnet-arch }}/publish/**/*
- name: Upload Artifact - MSIX
if: ${{ matrix.os == 'windows-latest' && !env.ACT }}
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: CLI-MSIX-${{ matrix.dotnet-arch }}
path: ${{ github.workspace }}/MSStore.CLI.MSIX/AppPackages/${{ matrix.dotnet-arch }}/MSStore.CLI.MSIX_${{ env.GitBuildVersionSimple }}.0_${{ matrix.dotnet-arch }}_Test.msix

0 comments on commit 56d71ef

Please sign in to comment.