diff --git a/.github/actions/download-artifact/action.yml b/.github/actions/download-artifact/action.yml deleted file mode 100644 index 7227ff20..00000000 --- a/.github/actions/download-artifact/action.yml +++ /dev/null @@ -1,32 +0,0 @@ -name: Download artifact -description: Wrapper around GitHub's official action, with additional extraction before download - -# https://github.com/actions/download-artifact/blob/main/action.yml -# https://github.com/actions/upload-artifact/issues/199 -inputs: - name: - description: Artifact name - required: true - path: - description: Destination path - required: false - default: . - -runs: - using: composite - steps: - - name: Download artifacts - uses: actions/download-artifact@v3 - with: - name: ${{ inputs.name }} - path: ${{ inputs.path }} - - - name: Extract artifacts - run: tar -xvf ${{ inputs.name }}.tar - shell: bash - working-directory: ${{ inputs.path }} - - - name: Remove archive - run: rm -f ${{ inputs.name }}.tar - shell: bash - working-directory: ${{ inputs.path }} diff --git a/.github/actions/upload-artifact/action.yml b/.github/actions/upload-artifact/action.yml deleted file mode 100644 index b8aeff26..00000000 --- a/.github/actions/upload-artifact/action.yml +++ /dev/null @@ -1,47 +0,0 @@ -name: Upload artifact -description: Wrapper around GitHub's official action, with additional archiving before upload - -# https://github.com/actions/upload-artifact/blob/main/action.yml -# https://github.com/actions/upload-artifact/issues/199 -inputs: - name: - description: Artifact name - required: true - path: - description: One or more files, directories or wildcard pattern that describes what to upload - required: true - if-no-files-found: - description: > - The desired behavior if no files are found using the provided path. - Available Options: - warn: Output a warning but do not fail the action - error: Fail the action with an error message - ignore: Do not output any warnings or errors, the action does not fail - required: false - default: warn - retention-days: - description: > - Duration after which artifact will expire in days. 0 means using default retention. - Minimum 1 day. - Maximum 90 days unless changed from the repository settings page. - required: false - default: '0' - -runs: - using: composite - steps: - - name: Archive artifacts - run: tar -cv -I 'xz -0 -T0' -f ${{ inputs.name }}.tar $(echo "${{ inputs.path }}" | tr '\n' ' ') - shell: bash - - - name: Upload artifacts - uses: actions/upload-artifact@v3 - with: - if-no-files-found: ${{ inputs.if-no-files-found }} - name: ${{ inputs.name }} - path: ${{ inputs.name }}.tar - retention-days: ${{ inputs.retention-days }} - - - name: Remove archive - run: rm -f ${{ inputs.name }}.tar - shell: bash diff --git a/.github/workflows/codeql-analysis.yml b/.github/workflows/codeql-analysis.yml index a3a28785..f4d9108a 100644 --- a/.github/workflows/codeql-analysis.yml +++ b/.github/workflows/codeql-analysis.yml @@ -50,7 +50,7 @@ jobs: steps: # Setup - - uses: actions/setup-dotnet@v3 + - uses: actions/setup-dotnet@v4 with: dotnet-version: ${{ env.dotnet-version }} diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index e1b45229..df735b7f 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -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 @@ -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 }} @@ -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. @@ -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: | @@ -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 }} @@ -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 @@ -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 }} @@ -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. @@ -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: | @@ -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 }} diff --git a/.github/workflows/sonarcloud.yml b/.github/workflows/sonarcloud.yml index 49bfdc08..8b917e62 100644 --- a/.github/workflows/sonarcloud.yml +++ b/.github/workflows/sonarcloud.yml @@ -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"