-
Notifications
You must be signed in to change notification settings - Fork 28
41 lines (32 loc) · 968 Bytes
/
test.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
# yaml-language-server: $schema=https://json.schemastore.org/github-workflow.json
name: Unit Testing
on:
workflow_dispatch:
push:
branches: [ main ]
pull_request:
branches: [ main ]
env:
BuildConfiguration: Release
CheckoutDirectory: checkout
ProjectName: FastEnum.UnitTests
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
Tfm: [net8.0, net9.0]
steps:
- name: Setup .NET SDK
uses: actions/setup-dotnet@v4
with:
dotnet-version: 9.0.x
- name: Display .NET version
run: dotnet --version
- name: Checkout
uses: actions/checkout@v4
with:
path: ${{ env.CheckoutDirectory }}
fetch-depth: 0
- name: Test
run: dotnet test --verbosity normal --configuration ${{ env.BuildConfiguration }} --framework ${{ matrix.Tfm }} ./${{ env.CheckoutDirectory }}/src/insights/${{ env.ProjectName }}/${{ env.ProjectName }}.csproj