Github action for tests, how to use, switch examples to net6, release… #1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: .NET | |
on: | |
push: | |
branches: [ "master" ] | |
pull_request: | |
branches: [ "master" ] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Setup .NET | |
uses: actions/setup-dotnet@v2 | |
with: | |
dotnet-version: 6.0.x | |
- name: Restore dependencies | |
run: dotnet restore src | |
- name: Build Lib | |
run: dotnet build src/NReco.DependencyInjection -property:TargetFrameworks=netstandard2.0 --no-restore | |
- name: Build Tests | |
run: dotnet build src/NReco.DependencyInjection.Tests --no-restore | |
- name: Test | |
run: dotnet test src/NReco.DependencyInjection.Tests --no-build --verbosity normal |