Skip to content

Commit

Permalink
Create xunit-tests.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
msx752 authored Feb 25, 2023
1 parent 1b928f9 commit 67d7390
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions .github/workflows/xunit-tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
# This workflow will build a .NET project
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-net
name: xunit-tests
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
jobs:
build:

runs-on: ubuntu-latest
strategy:
matrix:
dotnet-version: [ '7.0.x' ]
permissions:
actions: read
contents: read
security-events: write

steps:
- uses: actions/checkout@v3
- name: Setup .NET Core SDK ${{ matrix.dotnet-version }}
uses: actions/setup-dotnet@v3
with:
dotnet-version: ${{ matrix.dotnet-version }}

- name: Install dependencies
run: dotnet restore

- name: Test
run: dotnet test test/SampleDotnet.Result.Tests/SampleDotnet.Result.Tests.csproj --no-restore --verbosity normal

0 comments on commit 67d7390

Please sign in to comment.