Skip to content

Commit dd37630

Browse files
authored
feat: update github workflows (#281)
1 parent a7899b8 commit dd37630

File tree

2 files changed

+13
-11
lines changed

2 files changed

+13
-11
lines changed

.github/workflows/ci.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,15 +10,15 @@ jobs:
1010
test-linux:
1111
runs-on: ubuntu-20.04
1212
steps:
13-
- uses: actions/checkout@v2
13+
- uses: actions/checkout@v3
1414
with:
1515
fetch-depth: '0' # all
1616
- name: Setup .NET Core 3.1
17-
uses: actions/setup-dotnet@v1
17+
uses: actions/setup-dotnet@v3
1818
with:
1919
dotnet-version: '3.1.x'
2020
- name: Setup .NET 7.0
21-
uses: actions/setup-dotnet@v1
21+
uses: actions/setup-dotnet@v3
2222
with:
2323
dotnet-version: '7.0.x'
2424
- name: Setup gitversion
@@ -39,9 +39,9 @@ jobs:
3939
test-win:
4040
runs-on: windows-2019
4141
steps:
42-
- uses: actions/checkout@v2
42+
- uses: actions/checkout@v3
4343
- name: Setup .NET 7.0
44-
uses: actions/setup-dotnet@v1
44+
uses: actions/setup-dotnet@v3
4545
with:
4646
dotnet-version: '7.0.x'
4747
- name: Restore packages

.github/workflows/publish.yml

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -16,14 +16,14 @@ jobs:
1616
publish-nuget:
1717
runs-on: ubuntu-20.04
1818
steps:
19-
- uses: actions/checkout@v2
19+
- uses: actions/checkout@v3
2020
with:
2121
ref: "${{ github.event.inputs.ref }}"
2222
fetch-depth: '0' # all
23-
- name: Setup .NET Core 5.0
24-
uses: actions/setup-dotnet@v1
23+
- name: Setup .NET Core 7.0
24+
uses: actions/setup-dotnet@v3
2525
with:
26-
dotnet-version: '5.0.x'
26+
dotnet-version: '7.0.x'
2727
- name: Setup gitversion
2828
run: dotnet tool install --global GitVersion.Tool
2929
- name: Calculate version
@@ -35,8 +35,10 @@ jobs:
3535
run: dotnet restore DynamicExpresso.sln
3636
- name: Build
3737
run: dotnet build DynamicExpresso.sln --no-restore -c Release /p:Version=${{steps.calc_version.outputs.PROJECT_VERSION}}
38-
- name: Test .net core 5.0
39-
run: dotnet test DynamicExpresso.sln --no-build --no-restore -c Release /p:Version=${{steps.calc_version.outputs.PROJECT_VERSION}} --verbosity normal -f netcoreapp5.0
38+
- name: Test .net core 3.1
39+
run: dotnet test DynamicExpresso.sln --no-build --no-restore -c Release /p:Version=${{steps.calc_version.outputs.PROJECT_VERSION}} --verbosity normal -f netcoreapp3.1
40+
- name: Test .net core 7.0
41+
run: dotnet test DynamicExpresso.sln --no-build --no-restore -c Release /p:Version=${{steps.calc_version.outputs.PROJECT_VERSION}} --verbosity normal -f net7.0
4042
- name: Setup nuget sources
4143
run: dotnet nuget add source --name github "https://nuget.pkg.github.com/davideicardi/index.json"
4244
- name: Pack

0 commit comments

Comments
 (0)