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

ci: change to v4 actions / upgrade to NodeJS 20 #100

Merged
merged 2 commits into from
Feb 7, 2024
Merged
Show file tree
Hide file tree
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
32 changes: 0 additions & 32 deletions .github/actions/download-artifact/action.yml

This file was deleted.

47 changes: 0 additions & 47 deletions .github/actions/upload-artifact/action.yml

This file was deleted.

2 changes: 1 addition & 1 deletion .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ jobs:

steps:
# Setup
- uses: actions/setup-dotnet@v3
- uses: actions/setup-dotnet@v4
with:
dotnet-version: ${{ env.dotnet-version }}

Expand Down
24 changes: 12 additions & 12 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,12 +40,12 @@ jobs:
fetch-tags: true

- name: Install GitVersion ${{ env.GITVERSION }}
uses: gittools/actions/gitversion/setup@v0.10.2
uses: gittools/actions/gitversion/setup@v0.11.0
with:
versionSpec: ${{ env.GITVERSION }}

- name: Determine version
uses: gittools/actions/gitversion/execute@v0.10.2
uses: gittools/actions/gitversion/execute@v0.11.0
id: gitversion
with:
useConfigFile: true
Expand All @@ -62,7 +62,7 @@ jobs:
msbuild-version-args: ${{ env.msbuild-version-args }}
steps:
# Setup
- uses: actions/setup-dotnet@v3
- uses: actions/setup-dotnet@v4
with:
dotnet-version: ${{ env.dotnet-version }}

Expand All @@ -75,7 +75,7 @@ jobs:

# NuGet cache
- name: Restore NuGet global package cache
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: ~/.nuget/packages
key: ${{ runner.os }}-nuget-${{ hashFiles('**/*.targets','**/*.props','**/*.csproj') }} # Can't use packages.lock.json yet, because Dependabot does not support it.
Expand All @@ -88,7 +88,7 @@ jobs:
# Build
- run: dotnet build --no-restore -c Release ${{ env.msbuild-version-args }}
- name: Upload build artifacts
uses: ./.github/actions/upload-artifact
uses: actions/upload-artifact@v4
with:
name: build
path: |
Expand All @@ -109,7 +109,7 @@ jobs:
runs-on: ${{ matrix.os }}
steps:
# Setup
- uses: actions/setup-dotnet@v3
- uses: actions/setup-dotnet@v4
with:
dotnet-version: ${{ env.dotnet-version }}

Expand All @@ -120,7 +120,7 @@ jobs:

# Restore build artifacts
- name: Download build artifacts
uses: ./.github/actions/download-artifact
uses: actions/download-artifact@v4
with:
name: build

Expand All @@ -134,7 +134,7 @@ jobs:
runs-on: ubuntu-latest
steps:
# Setup
- uses: actions/setup-dotnet@v3
- uses: actions/setup-dotnet@v4
with:
dotnet-version: ${{ env.dotnet-version }}

Expand All @@ -145,7 +145,7 @@ jobs:

# NuGet cache (.NET Framework Reference assemblies are needed for pack)
- name: Restore NuGet global package cache
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: ~/.nuget/packages
key: ${{ runner.os }}-nuget-${{ hashFiles('**/*.targets','**/*.props','**/*.csproj') }} # Can't use packages.lock.json yet, because Dependabot does not support it.
Expand All @@ -155,14 +155,14 @@ jobs:

# Restore build artifacts
- name: Download build artifacts
uses: ./.github/actions/download-artifact
uses: actions/download-artifact@v4
with:
name: build

# Pack
- run: dotnet pack --no-restore --no-build -c Release ${{ needs.build.outputs.msbuild-version-args }}
- name: Upload release artifacts
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: release-${{ needs.determine-version.outputs.package-version }}
path: |
Expand All @@ -181,7 +181,7 @@ jobs:
steps:
# Restore release artifacts
- name: Download release artifact
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
with:
name: release-${{ needs.determine-version.outputs.package-version }}

Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/sonarcloud.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,17 +35,17 @@ jobs:
needs: authorize
runs-on: ubuntu-latest
steps:
- uses: actions/setup-dotnet@v3
- uses: actions/setup-dotnet@v4
with:
dotnet-version: ${{ env.dotnet-version }}

- run: dotnet --info

- uses: actions/setup-node@v3
- uses: actions/setup-node@v4
with:
node-version: 18
node-version: 20

- uses: actions/setup-java@v3
- uses: actions/setup-java@v4
with:
distribution: "temurin"
java-version: "17"
Expand Down
Loading