Skip to content

Merge pull request #57 from messerli-informatik-ag/fix-author #32

Merge pull request #57 from messerli-informatik-ag/fix-author

Merge pull request #57 from messerli-informatik-ag/fix-author #32

Workflow file for this run

name: Build
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
env:
DOTNET_NOLOGO: 1
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
autofac: [ 'lowestSupported', '6.0.0' ]
env:
AutofacVersion: ${{matrix.autofac}}
steps:
- uses: actions/checkout@v3
- uses: actions/setup-dotnet@v3
- name: Restore dependencies
run: dotnet restore
- name: Build
run: dotnet build --no-restore /p:TreatWarningsAsErrors=true
- name: Run Tests
run: dotnet test --no-build
nupkg:
name: Generate NuGet Packages
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-dotnet@v3
- name: Generate NuGet Packages
run: dotnet pack --configuration Release --output nupkg /p:TreatWarningsAsErrors=true
- uses: actions/upload-artifact@v2
if: success() && github.ref == 'refs/heads/main'
with:
name: nupkg
path: nupkg/*
retention-days: 1