Skip to content

Feature/netandnugets #121

Feature/netandnugets

Feature/netandnugets #121

Workflow file for this run

name: .NET Core
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Setup .NET Core
uses: actions/setup-dotnet@v1
with:
dotnet-version: '8.0.x'
include-prerelease: false
- name: Build with dotnet
run: dotnet build --configuration Release
- name: Run tests
run: dotnet test Nbic.References.Tests/Nbic.References.Tests.csproj -- MaxCpuCount=1
- name: Build and push Docker images
uses: docker/build-push-action@v1
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
dockerfile: Nbic.References/Dockerfile
repository: artsdatabanken/nbicreferences
tags: latest