44 lines
886 B
YAML
44 lines
886 B
YAML
name: Linux
|
|
|
|
on:
|
|
push:
|
|
branches: [ 'main*' ]
|
|
paths-ignore:
|
|
- '**.md'
|
|
pull_request:
|
|
branches: [ 'main*' ]
|
|
paths-ignore:
|
|
- '**.md'
|
|
|
|
jobs:
|
|
build-test:
|
|
runs-on: ubuntu-latest
|
|
|
|
strategy:
|
|
matrix:
|
|
version: [net6.0, net7.0]
|
|
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
with:
|
|
fetch-depth: 0 # fetching all
|
|
|
|
- uses: actions/setup-dotnet@v3.0.1
|
|
with:
|
|
dotnet-version: '6.0.x'
|
|
|
|
- uses: actions/setup-dotnet@v3.0.1
|
|
with:
|
|
dotnet-version: '7.0.x'
|
|
include-prerelease: true
|
|
|
|
|
|
- name: Install dependencies
|
|
run: dotnet restore
|
|
|
|
- name: Build
|
|
run: dotnet build --configuration Release --no-restore
|
|
|
|
- name: Test ${{ matrix.version }}
|
|
run: dotnet test **/bin/**/${{ matrix.version }}/*.Tests.dll --configuration Release --no-build --logger:"console;verbosity=detailed"
|