From dd37630e36f9dfe11be79630cbd2ee750321eabc Mon Sep 17 00:00:00 2001 From: Davide Icardi Date: Fri, 24 Mar 2023 11:57:24 +0100 Subject: [PATCH] feat: update github workflows (#281) --- .github/workflows/ci.yml | 10 +++++----- .github/workflows/publish.yml | 14 ++++++++------ 2 files changed, 13 insertions(+), 11 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index d0474372..34599c4e 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -10,15 +10,15 @@ jobs: test-linux: runs-on: ubuntu-20.04 steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 with: fetch-depth: '0' # all - name: Setup .NET Core 3.1 - uses: actions/setup-dotnet@v1 + uses: actions/setup-dotnet@v3 with: dotnet-version: '3.1.x' - name: Setup .NET 7.0 - uses: actions/setup-dotnet@v1 + uses: actions/setup-dotnet@v3 with: dotnet-version: '7.0.x' - name: Setup gitversion @@ -39,9 +39,9 @@ jobs: test-win: runs-on: windows-2019 steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 - name: Setup .NET 7.0 - uses: actions/setup-dotnet@v1 + uses: actions/setup-dotnet@v3 with: dotnet-version: '7.0.x' - name: Restore packages diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 09bfe699..a7100f1b 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -16,14 +16,14 @@ jobs: publish-nuget: runs-on: ubuntu-20.04 steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 with: ref: "${{ github.event.inputs.ref }}" fetch-depth: '0' # all - - name: Setup .NET Core 5.0 - uses: actions/setup-dotnet@v1 + - name: Setup .NET Core 7.0 + uses: actions/setup-dotnet@v3 with: - dotnet-version: '5.0.x' + dotnet-version: '7.0.x' - name: Setup gitversion run: dotnet tool install --global GitVersion.Tool - name: Calculate version @@ -35,8 +35,10 @@ jobs: run: dotnet restore DynamicExpresso.sln - name: Build run: dotnet build DynamicExpresso.sln --no-restore -c Release /p:Version=${{steps.calc_version.outputs.PROJECT_VERSION}} - - name: Test .net core 5.0 - run: dotnet test DynamicExpresso.sln --no-build --no-restore -c Release /p:Version=${{steps.calc_version.outputs.PROJECT_VERSION}} --verbosity normal -f netcoreapp5.0 + - name: Test .net core 3.1 + run: dotnet test DynamicExpresso.sln --no-build --no-restore -c Release /p:Version=${{steps.calc_version.outputs.PROJECT_VERSION}} --verbosity normal -f netcoreapp3.1 + - name: Test .net core 7.0 + run: dotnet test DynamicExpresso.sln --no-build --no-restore -c Release /p:Version=${{steps.calc_version.outputs.PROJECT_VERSION}} --verbosity normal -f net7.0 - name: Setup nuget sources run: dotnet nuget add source --name github "https://nuget.pkg.github.com/davideicardi/index.json" - name: Pack