Skip to content

Commit

Permalink
Update GH actions to latest versions (node12 and set-output deprecated)
Browse files Browse the repository at this point in the history
  • Loading branch information
gpailler committed Oct 16, 2022
1 parent f97b1cf commit 21902a8
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand All @@ -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
Expand All @@ -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"
Expand All @@ -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
Expand All @@ -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/
Expand All @@ -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/
Expand All @@ -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
Expand Down

0 comments on commit 21902a8

Please sign in to comment.