-
Notifications
You must be signed in to change notification settings - Fork 3
37 lines (37 loc) · 1.04 KB
/
pep-dotnet-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
name: PEP Build and Test on windows, macos and ubuntu
on:
push:
paths:
- 'src/Altinn.Common.PEP/**'
branches: [ main ]
pull_request:
paths:
- 'src/Altinn.Common.PEP/**'
branches: [ main ]
types: [opened, synchronize, reopened]
workflow_dispatch:
jobs:
analyze:
strategy:
matrix:
os: [macos-latest,windows-latest,ubuntu-latest] # TODO: Fix test to run on ubuntu-latest also
name: Run dotnet build and test
runs-on: ${{ matrix.os}}
env:
DOTNET_HOSTBUILDER__RELOADCONFIGONCHANGE: false
steps:
- name: Setup .NET
uses: actions/setup-dotnet@v4
with:
dotnet-version: |
6.0.x
5.0.x
- uses: actions/checkout@v4
with:
fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis
- name: Build
run: |
dotnet build src/Altinn.Common.PEP/Altinn.Common.PEP.sln -v m
- name: Test
run: |
dotnet test src/Altinn.Common.PEP/Altinn.Common.PEP.sln -v m