Skip to content

Commit 39a485a

Browse files
Updating github actions with dotnet 6.0.x
1 parent 18be5a6 commit 39a485a

File tree

1 file changed

+21
-6
lines changed

1 file changed

+21
-6
lines changed

.github/workflows/test.yml

Lines changed: 21 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -38,18 +38,33 @@ jobs:
3838
mono: none
3939
TEST_PROJECT: $NETCORE3_TEST_PROJECT
4040
steps:
41-
- uses: actions/checkout@v2
42-
- name: Setup .NET Core
43-
uses: actions/setup-dotnet@v1
41+
- name: Checkout code
42+
uses: actions/checkout@v2
43+
- name: Setup .NET 6
44+
uses: actions/[email protected]
45+
with:
46+
dotnet-version: 6.0.x
47+
- name: Build using .NET 6
48+
run: >
49+
export PATH="$PATH:$HOME/.dotnet/tools"
50+
51+
dotnet build ${{ env.NETCORE2_TEST_PROJECT }} -c Release
52+
53+
dotnet build ${{ env.NETCORE3_TEST_PROJECT }} -c Release
54+
- name: Setup .NET [Core] ${{ matrix.dotnet }}
55+
uses: actions/[email protected]
4456
with:
4557
dotnet-version: '${{ matrix.dotnet }}'
46-
- name: Test
58+
- name: List .NET SDKs
59+
run: >
60+
dotnet --list-sdks
61+
- name: Run tests using .NET [Core] ${{ matrix.dotnet }}
4762
run: >
4863
export PATH="$PATH:$HOME/.dotnet/tools"
49-
5064
dotnet test ${{ matrix.TEST_PROJECT }} -c Release
5165
-l:"trx;LogFileName=tests.trx" -r:"bin/" /p:CollectCoverage=true
5266
/p:CoverletOutputFormat="opencover"
5367
/p:CoverletOutput="bin/coverage.xml"
54-
68+
- name: Local publish
69+
run: >
5570
dotnet publish ${{ matrix.TEST_PROJECT }} -c Release

0 commit comments

Comments
 (0)