Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update workflow steps because of Node.js 16 deprecation #91

Merged
merged 4 commits into from
Jan 31, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
54 changes: 21 additions & 33 deletions .github/workflows/MSBuild.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,15 +15,15 @@ jobs:
runs-on: windows-2022
steps:
- name: Git Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Install NAnt
working-directory: imports/
run: nuget.exe install NAnt

- name: Cache preparations
id: cache
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: |
imports/release
Expand All @@ -34,7 +34,7 @@ jobs:

- name: Cache Import Downloads
if: steps.cache.outputs.cache-hit != 'true'
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: |
imports/downloads
Expand Down Expand Up @@ -65,7 +65,7 @@ jobs:
path: imports/release/

- name: Add MSBuild to PATH
uses: microsoft/setup-msbuild@v1
uses: microsoft/setup-msbuild@v2

- name: Setup version
run: scripts\gh-version-setup.cmd ${{ github.run_number }}
Expand All @@ -92,9 +92,6 @@ jobs:
- name: Git Checkout
uses: actions/checkout@v4

- name: Setup VSTest Path
uses: darenm/Setup-VSTest@v1.2

- name: Restore dependency artifacts
uses: actions/download-artifact@v4
with:
Expand All @@ -107,8 +104,8 @@ jobs:
name: build-x86-artifacts
path: src/

- name: VSTest-x86
run: vstest.console.exe /Platform:x86 src/SharpSvn.Tests/bin/x86/Release/SharpSvn.Tests.dll "--testcasefilter:TestCategory!=NeedsNetwork"
- name: Dotnet-test-x86
run: dotnet vstest /Platform:x86 src/SharpSvn.Tests/bin/x86/Release/SharpSvn.Tests.dll --TestCaseFilter:"TestCategory!=NeedsNetwork"

build-x64:
needs: dependencies
Expand All @@ -124,7 +121,7 @@ jobs:
path: imports/release/

- name: Add MSBuild to PATH
uses: microsoft/setup-msbuild@v1
uses: microsoft/setup-msbuild@v2

- name: Setup version
run: scripts\gh-version-setup.cmd ${{ github.run_number }}
Expand All @@ -150,9 +147,6 @@ jobs:
- name: Git Checkout
uses: actions/checkout@v4

- name: Setup VSTest Path
uses: darenm/Setup-VSTest@v1.2

- name: Restore dependency artifacts
uses: actions/download-artifact@v4
with:
Expand All @@ -165,8 +159,8 @@ jobs:
name: build-x64-artifacts
path: src/

- name: VSTest-x64
run: vstest.console.exe /Platform:x64 src/SharpSvn.Tests/bin/x64/Release/SharpSvn.Tests.dll "--testcasefilter:TestCategory!=NeedsNetwork"
- name: Dotnet-test-x64
run: dotnet vstest /Platform:x64 src/SharpSvn.Tests/bin/x64/Release/SharpSvn.Tests.dll --TestCaseFilter:"TestCategory!=NeedsNetwork"

build-x86-core:
needs: dependencies
Expand All @@ -182,10 +176,10 @@ jobs:
path: imports/release/

- name: Add MSBuild to PATH
uses: microsoft/setup-msbuild@v1
uses: microsoft/setup-msbuild@v2

- name: Load dotnet core 3.1.x
uses: actions/setup-dotnet@v3
uses: actions/setup-dotnet@v4
with:
dotnet-version: '3.1.x'

Expand Down Expand Up @@ -215,9 +209,6 @@ jobs:
- name: Git Checkout
uses: actions/checkout@v4

- name: Setup VSTest Path
uses: darenm/Setup-VSTest@v1.2

- name: Restore dependency artifacts
uses: actions/download-artifact@v4
with:
Expand All @@ -230,8 +221,8 @@ jobs:
name: build-x86-core-artifacts
path: src/

- name: VSTest-Core-x86
run: vstest.console.exe /Platform:x86 src/SharpSvn.Tests/bin/x86/ReleaseCore/SharpSvn.Tests.dll "--testcasefilter:TestCategory!=NeedsNetwork"
- name: Dotnet-test-Core-x86
run: dotnet vstest /Platform:x86 src/SharpSvn.Tests/bin/x86/ReleaseCore/SharpSvn.Tests.dll --TestCaseFilter:"TestCategory!=NeedsNetwork"

build-x64-core:
needs: dependencies
Expand All @@ -241,7 +232,7 @@ jobs:
uses: actions/checkout@v4

- name: Load dotnet core 3.1.x
uses: actions/setup-dotnet@v3
uses: actions/setup-dotnet@v4
with:
dotnet-version: '3.1.x'

Expand All @@ -252,7 +243,7 @@ jobs:
path: imports/release/

- name: Add MSBuild to PATH
uses: microsoft/setup-msbuild@v1
uses: microsoft/setup-msbuild@v2

- name: Setup version
run: scripts\gh-version-setup.cmd ${{ github.run_number }}
Expand All @@ -279,9 +270,6 @@ jobs:
- name: Git Checkout
uses: actions/checkout@v4

- name: Setup VSTest Path
uses: darenm/Setup-VSTest@v1.2

- name: Restore dependency artifacts
uses: actions/download-artifact@v4
with:
Expand All @@ -294,8 +282,8 @@ jobs:
name: build-x64-core-artifacts
path: src/

- name: VSTest-Core-x64
run: vstest.console.exe /Platform:x64 src/SharpSvn.Tests/bin/x64/ReleaseCore/SharpSvn.Tests.dll "--testcasefilter:TestCategory!=NeedsNetwork"
- name: Dotnet-test-Core-x64
run: dotnet vstest /Platform:x64 src/SharpSvn.Tests/bin/x64/ReleaseCore/SharpSvn.Tests.dll --TestCaseFilter:"TestCategory!=NeedsNetwork"

build-arm64-core:
needs: dependencies
Expand All @@ -311,12 +299,12 @@ jobs:
path: imports/release/

- name: Load dotnet core 3.1.x
uses: actions/setup-dotnet@v3
uses: actions/setup-dotnet@v4
with:
dotnet-version: '3.1.x'

- name: Add MSBuild to PATH
uses: microsoft/setup-msbuild@v1
uses: microsoft/setup-msbuild@v2

- name: Setup version
run: scripts\gh-version-setup.cmd ${{ github.run_number }}
Expand Down Expand Up @@ -357,7 +345,7 @@ jobs:
merge-multiple: true

- name: Add MSBuild to PATH
uses: microsoft/setup-msbuild@v1
uses: microsoft/setup-msbuild@v2

- name: Setup version
run: scripts\gh-version-setup.cmd ${{ github.run_number }}
Expand All @@ -366,7 +354,7 @@ jobs:
run: scripts\gh-build-nuget.cmd

- name: Package nupkg files
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: nupkg-files
path: nuspec/bin/*.nupkg
Loading