From 10aca6c19514ebcefd6aae2a237a152e53ce0882 Mon Sep 17 00:00:00 2001 From: Stuart Ferguson Date: Tue, 17 Nov 2020 09:55:03 +0000 Subject: [PATCH] Workflow updates --- .github/workflows/createrelease.yml | 18 ++++-------------- .github/workflows/nightlybuild.yml | 16 +++------------- .github/workflows/pullrequest.yml | 11 +---------- .github/workflows/release-management.yml | 2 +- 4 files changed, 9 insertions(+), 38 deletions(-) diff --git a/.github/workflows/createrelease.yml b/.github/workflows/createrelease.yml index 532330a9..686c62fb 100644 --- a/.github/workflows/createrelease.yml +++ b/.github/workflows/createrelease.yml @@ -10,20 +10,15 @@ jobs: env: ASPNETCORE_ENVIRONMENT: "Production" - runs-on: ubuntu-16.04 + runs-on: ubuntu-latest steps: - - uses: actions/checkout@v1 + - uses: actions/checkout@v2.3.4 - name: Get the version id: get_version run: echo ::set-output name=VERSION::${GITHUB_REF/refs\/tags\//} - - name: Setup .NET Core - uses: actions/setup-dotnet@v1 - with: - dotnet-version: 3.1.100 - - name: Restore Nuget Packages run: dotnet restore SecurityService.sln --source https://api.nuget.org/v3/index.json --source https://www.myget.org/F/transactionprocessing/api/v3/index.json @@ -76,7 +71,7 @@ jobs: - name: Get Release id: getrelease - uses: octokit/request-action@v1.x + uses: octokit/request-action@v2.0.17 with: route: GET /repos/StuartFerguson/SecurityService/releases/tags/${{ steps.get_version.outputs.VERSION }} env: @@ -113,12 +108,7 @@ jobs: --deployTo Development --waitfordeployment --deploymenttimeout 00:05:00 - --releasenotes "${{ steps.buildreleasenotes.outputs.releasenote }}" - - - name: Setup .NET Core - uses: actions/setup-dotnet@v1 - with: - dotnet-version: 3.1.100 + --releasenotes "${{ steps.buildreleasenotes.outputs.releasenote }}" - name: Build and Publish Nuget Packages run: | diff --git a/.github/workflows/nightlybuild.yml b/.github/workflows/nightlybuild.yml index 05bd8c0b..b3cc4cf6 100644 --- a/.github/workflows/nightlybuild.yml +++ b/.github/workflows/nightlybuild.yml @@ -14,12 +14,7 @@ jobs: runs-on: windows-latest steps: - - uses: actions/checkout@v1 - - - name: Setup .NET Core - uses: actions/setup-dotnet@v1 - with: - dotnet-version: 3.1.100 + - uses: actions/checkout@v2.3.4 - name: Restore Nuget Packages run: dotnet restore SecurityService.sln --source https://api.nuget.org/v3/index.json --source https://www.myget.org/F/transactionprocessing/api/v3/index.json @@ -69,12 +64,7 @@ jobs: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v1 - - - name: Setup .NET Core - uses: actions/setup-dotnet@v1 - with: - dotnet-version: 3.1.100 + - uses: actions/checkout@v2.3.4 - name: Restore Nuget Packages run: dotnet restore SecurityService.sln --source https://api.nuget.org/v3/index.json --source https://www.myget.org/F/transactionprocessing/api/v3/index.json @@ -88,7 +78,7 @@ jobs: dotnet test "SecurityService.UnitTests\SecurityService.UnitTests.csproj" /p:ExcludeByFile="\SecurityService\Views\**\*.cshtml" /p:CollectCoverage=true /p:Exclude="[xunit*]*" /p:ExcludeByAttribute="Obsolete" /p:ExcludeByAttribute="GeneratedCodeAttribute" /p:ExcludeByAttribute="CompilerGeneratedAttribute" /p:ExcludeByAttribute="ExcludeFromCodeCoverageAttribute" /p:CoverletOutput="../lcov1.info" /maxcpucount:1 /p:CoverletOutputFormat="lcov" - name: Setup Node.js for use with actions - uses: actions/setup-node@v1.1.0 + uses: actions/setup-node@v1.4.4 - name: Combine Coverage run: | diff --git a/.github/workflows/pullrequest.yml b/.github/workflows/pullrequest.yml index 262d88b1..93928854 100644 --- a/.github/workflows/pullrequest.yml +++ b/.github/workflows/pullrequest.yml @@ -14,12 +14,7 @@ jobs: runs-on: windows-latest steps: - - uses: actions/checkout@v1 - - - name: Setup .NET Core - uses: actions/setup-dotnet@v1 - with: - dotnet-version: 3.1.100 + - uses: actions/checkout@v2.3.4 - name: Restore Nuget Packages run: dotnet restore SecurityService.sln --source https://api.nuget.org/v3/index.json --source https://www.myget.org/F/transactionprocessing/api/v3/index.json @@ -60,7 +55,3 @@ jobs: DriverExe: msedgedriver.exe run: | dotnet test "SecurityService.OpenIdConnect.IntegrationTests\SecurityService.OpenIdConnect.IntegrationTests.csproj" --filter Category=PRTest - - - name: Setup tmate session - if: failure() - uses: mxschmitt/action-tmate@v1 diff --git a/.github/workflows/release-management.yml b/.github/workflows/release-management.yml index 83d8d984..79b12044 100644 --- a/.github/workflows/release-management.yml +++ b/.github/workflows/release-management.yml @@ -11,6 +11,6 @@ jobs: runs-on: ubuntu-latest steps: # Drafts your next Release notes as Pull Requests are merged into "master" - - uses: toolmantim/release-drafter@v5.2.0 + - uses: toolmantim/release-drafter@v5.12.1 env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}