Skip to content

Commit

Permalink
Create dotnet-test.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
Codespilot authored Jul 3, 2023
1 parent 6abb19f commit 5e2ff2b
Showing 1 changed file with 37 additions and 0 deletions.
37 changes: 37 additions & 0 deletions .github/workflows/dotnet-test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@

name: .NET Test

on:
push:
branches: [ "master","develop" ]
pull_request:
branches: [ "master" ]

jobs:

build:

runs-on: ubuntu-latest
strategy:
matrix:
dotnet-version: [ '7.0.x', '6.0.x' ]
configuration: [Debug, Release]

steps:
- name: Checkout
uses: actions/checkout@v3

# Install the .NET workload
- name: Install .NET ${{ matrix.dotnet-version }}
uses: actions/setup-dotnet@v3
with:
dotnet-version: ${{ matrix.dotnet-version }}

- name: Restore packages
run: dotnet restore Euonia.sln

- name: Build
run: dotnet build --configuration Release --no-restore

- name: Test
run: dotnet test --no-restore --verbosity normal

0 comments on commit 5e2ff2b

Please sign in to comment.