Skip to content

Fix tests in 1.x #134

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
Mar 1, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions .github/workflows/docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@ name: docker

on:
push:
branches: [master]
branches: [main, support/*]
tags: ["*"]
pull_request:
branches: [master]
branches: [main, support/*]

jobs:
docker:
Expand All @@ -18,4 +18,4 @@ jobs:
- name: docker build
run: docker build -t json-ld.net .
- name: docker test
run: docker run --rm json-ld.net dotnet test
run: docker run --rm json-ld.net dotnet test
28 changes: 14 additions & 14 deletions .github/workflows/dotnet.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@ name: dotnet

on:
push:
branches: [master]
branches: [main, support/*]
tags: ["*"]
pull_request:
branches: [master]
branches: [main, support/*]

jobs:
build:
Expand All @@ -15,22 +15,22 @@ jobs:
fullSemVer: ${{ steps.gitversion.outputs.fullSemVer }}

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v2.3.4
with:
fetch-depth: 0

- uses: gittools/actions/gitversion/[email protected].4
- uses: gittools/actions/gitversion/[email protected].10
with:
versionSpec: "5.x"
versionSpec: 5.x

- id: gitversion
uses: gittools/actions/gitversion/[email protected].4
uses: gittools/actions/gitversion/[email protected].10

- uses: actions/setup-dotnet@v1
- uses: actions/setup-dotnet@v1.8.2
with:
dotnet-version: 2.1.401
dotnet-version: 6.0.x

- uses: actions/cache@v2
- uses: actions/cache@v2.1.6
env:
NUGET_PACKAGES: ${{ github.workspace }}/.nuget/packages
with:
Expand Down Expand Up @@ -73,7 +73,7 @@ jobs:

nuget-push-dev:
runs-on: ubuntu-latest
if: github.ref == 'refs/heads/master'
if: github.ref == 'refs/heads/main'
needs: build

steps:
Expand All @@ -83,9 +83,9 @@ jobs:
name: nugets

- name: setup dotnet
uses: actions/setup-dotnet@v1
uses: actions/setup-dotnet@v1.8.2
with:
dotnet-version: 3.1
dotnet-version: 6.0.x
source-url: https://nuget.pkg.github.com/linked-data-dotnet/index.json
env:
NUGET_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Expand All @@ -103,9 +103,9 @@ jobs:
with:
name: nugets

- uses: actions/setup-dotnet@v1
- uses: actions/setup-dotnet@v1.8.2
with:
dotnet-version: 2.1.401
dotnet-version: 6.0.x
source-url: https://api.nuget.org/v3/index.json
env:
NUGET_AUTH_TOKEN: ${{ secrets.NUGET_API_KEY }}
Expand Down
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
#> docker build -t json-ld.net .
#> docker run --rm json-ld.net dotnet test -v normal

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

WORKDIR /App

Expand Down
2 changes: 1 addition & 1 deletion test/json-ld.net.tests/json-ld.net.tests.csproj
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFrameworks>netcoreapp2.1</TargetFrameworks>
<TargetFramework>net6.0</TargetFramework>
<GenerateRuntimeConfigurationFiles>true</GenerateRuntimeConfigurationFiles>
<GenerateAssemblyConfigurationAttribute>false</GenerateAssemblyConfigurationAttribute>
<GenerateAssemblyCompanyAttribute>false</GenerateAssemblyCompanyAttribute>
Expand Down