-
-
Notifications
You must be signed in to change notification settings - Fork 79
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update GH actions to latest versions (node12 and set-output deprecated)
- Loading branch information
Showing
1 changed file
with
9 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -20,18 +20,18 @@ jobs: | |
semVer: ${{ steps.gitversion.outputs.semVer }} | ||
steps: | ||
- name: Check out repository code | ||
uses: actions/checkout@v2 | ||
uses: actions/checkout@v3 | ||
with: | ||
fetch-depth: 0 # Full history is required by GitVersion | ||
|
||
- name: Install GitVersion | ||
uses: gittools/actions/gitversion/[email protected].7 | ||
uses: gittools/actions/gitversion/[email protected].14 | ||
with: | ||
versionSpec: '5.x' | ||
|
||
- name: Run GitVersion | ||
id: gitversion | ||
uses: gittools/actions/gitversion/[email protected].7 | ||
uses: gittools/actions/gitversion/[email protected].14 | ||
with: | ||
updateAssemblyInfo: true | ||
updateAssemblyInfoFilename: './GlobalAssemblyInfo.cs' | ||
|
@@ -43,7 +43,7 @@ jobs: | |
run: dotnet pack --configuration ${{ env.CONFIGURATION }} ./MegaApiClient/ --no-restore --no-build --output ./artifacts/ -p:PackageVersion=${{ env.GITVERSION_NUGETVERSION }} | ||
|
||
- name: Upload NuGet packages | ||
uses: actions/upload-artifact@v2 | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: NuGet packages | ||
path: ./artifacts/*.*nupkg | ||
|
@@ -63,7 +63,7 @@ jobs: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
- name: Check out repository code | ||
uses: actions/checkout@v2 | ||
uses: actions/checkout@v3 | ||
|
||
- name: Tests | ||
run: dotnet test --configuration ${{ env.CONFIGURATION }} ./MegaApiClient.Tests/ --framework net60 --logger "console;verbosity=detailed" --collect:"XPlat Code Coverage" -- DataCollectionRunSettings.DataCollectors.DataCollector.Configuration.Format=opencover DataCollectionRunSettings.DataCollectors.DataCollector.Configuration.Exclude="[MegaApiClient]BigInteger" | ||
|
@@ -79,7 +79,7 @@ jobs: | |
runs-on: windows-latest | ||
steps: | ||
- name: Check out repository code | ||
uses: actions/checkout@v2 | ||
uses: actions/checkout@v3 | ||
|
||
- name: Install DocFX | ||
run: nuget install docfx.console -Version 2.58.9 | ||
|
@@ -90,7 +90,7 @@ jobs: | |
./docfx.console.2.58.9/tools/docfx.exe build ./docs/docfx.json --globalMetadata "{'_appFooter': 'Copyright © 2013-2022 - Gregoire Pailler - MegaApiClient ${{ needs.build.outputs.semVer }}'}" | ||
- name: Upload Documentation | ||
uses: actions/upload-artifact@v2 | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: Documentation | ||
path: ./docs/_site/ | ||
|
@@ -102,7 +102,7 @@ jobs: | |
runs-on: windows-latest | ||
steps: | ||
- name: Download NuGet packages | ||
uses: actions/download-artifact@v2 | ||
uses: actions/download-artifact@v3 | ||
with: | ||
name: NuGet packages | ||
path: ./artifacts/ | ||
|
@@ -119,7 +119,7 @@ jobs: | |
if: startsWith(github.ref, 'refs/tags/v') | ||
steps: | ||
- name: Check out repository code | ||
uses: actions/checkout@v2 | ||
uses: actions/checkout@v3 | ||
|
||
- name: Download NuGet packages | ||
uses: actions/download-artifact@v2 | ||
|