Skip to content

Commit 681ed59

Browse files
authored
Merge pull request #134 from linked-data-dotnet/feature/1x-net6-tests
Fix tests in 1.x
2 parents 8c0934b + 0ebc90e commit 681ed59

File tree

4 files changed

+20
-20
lines changed

4 files changed

+20
-20
lines changed

.github/workflows/docker.yml

+3-3
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@ name: docker
22

33
on:
44
push:
5-
branches: [master]
5+
branches: [main, support/*]
66
tags: ["*"]
77
pull_request:
8-
branches: [master]
8+
branches: [main, support/*]
99

1010
jobs:
1111
docker:
@@ -18,4 +18,4 @@ jobs:
1818
- name: docker build
1919
run: docker build -t json-ld.net .
2020
- name: docker test
21-
run: docker run --rm json-ld.net dotnet test
21+
run: docker run --rm json-ld.net dotnet test

.github/workflows/dotnet.yml

+14-14
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@ name: dotnet
22

33
on:
44
push:
5-
branches: [master]
5+
branches: [main, support/*]
66
tags: ["*"]
77
pull_request:
8-
branches: [master]
8+
branches: [main, support/*]
99

1010
jobs:
1111
build:
@@ -15,22 +15,22 @@ jobs:
1515
fullSemVer: ${{ steps.gitversion.outputs.fullSemVer }}
1616

1717
steps:
18-
- uses: actions/checkout@v2
18+
- uses: actions/checkout@v2.3.4
1919
with:
2020
fetch-depth: 0
2121

22-
- uses: gittools/actions/gitversion/[email protected].4
22+
- uses: gittools/actions/gitversion/[email protected].10
2323
with:
24-
versionSpec: "5.x"
24+
versionSpec: 5.x
2525

2626
- id: gitversion
27-
uses: gittools/actions/gitversion/[email protected].4
27+
uses: gittools/actions/gitversion/[email protected].10
2828

29-
- uses: actions/setup-dotnet@v1
29+
- uses: actions/setup-dotnet@v1.8.2
3030
with:
31-
dotnet-version: 2.1.401
31+
dotnet-version: 6.0.x
3232

33-
- uses: actions/cache@v2
33+
- uses: actions/cache@v2.1.6
3434
env:
3535
NUGET_PACKAGES: ${{ github.workspace }}/.nuget/packages
3636
with:
@@ -73,7 +73,7 @@ jobs:
7373

7474
nuget-push-dev:
7575
runs-on: ubuntu-latest
76-
if: github.ref == 'refs/heads/master'
76+
if: github.ref == 'refs/heads/main'
7777
needs: build
7878

7979
steps:
@@ -83,9 +83,9 @@ jobs:
8383
name: nugets
8484

8585
- name: setup dotnet
86-
uses: actions/setup-dotnet@v1
86+
uses: actions/setup-dotnet@v1.8.2
8787
with:
88-
dotnet-version: 3.1
88+
dotnet-version: 6.0.x
8989
source-url: https://nuget.pkg.github.com/linked-data-dotnet/index.json
9090
env:
9191
NUGET_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
@@ -103,9 +103,9 @@ jobs:
103103
with:
104104
name: nugets
105105

106-
- uses: actions/setup-dotnet@v1
106+
- uses: actions/setup-dotnet@v1.8.2
107107
with:
108-
dotnet-version: 2.1.401
108+
dotnet-version: 6.0.x
109109
source-url: https://api.nuget.org/v3/index.json
110110
env:
111111
NUGET_AUTH_TOKEN: ${{ secrets.NUGET_API_KEY }}

Dockerfile

+2-2
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
#> docker build -t json-ld.net .
44
#> docker run --rm json-ld.net dotnet test -v normal
55

6-
# .NET Core 2.1 on Ubuntu 18.04 LTS
7-
FROM mcr.microsoft.com/dotnet/core/sdk:2.1-bionic
6+
# .NET Core 6.0 on Ubuntu 20.04 LTS
7+
FROM mcr.microsoft.com/dotnet/sdk:6.0-focal
88

99
WORKDIR /App
1010

test/json-ld.net.tests/json-ld.net.tests.csproj

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22

33
<PropertyGroup>
4-
<TargetFrameworks>netcoreapp2.1</TargetFrameworks>
4+
<TargetFramework>net6.0</TargetFramework>
55
<GenerateRuntimeConfigurationFiles>true</GenerateRuntimeConfigurationFiles>
66
<GenerateAssemblyConfigurationAttribute>false</GenerateAssemblyConfigurationAttribute>
77
<GenerateAssemblyCompanyAttribute>false</GenerateAssemblyCompanyAttribute>

0 commit comments

Comments
 (0)