generated from KvalitetsIT/kitnugs
-
Notifications
You must be signed in to change notification settings - Fork 0
42 lines (30 loc) · 929 Bytes
/
pr_ci.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
42
name: Pull Request CI
on:
pull_request: ~
jobs:
pr_build:
runs-on: ubuntu-latest
timeout-minutes: 15
steps:
- name: Setup env variables
run: |
echo "DOCKER_SERVICE=kvalitetsit/kitnugs" >> $GITHUB_ENV
# Checkout source code
- uses: actions/checkout@v4
# Setup .NET version
- name: Setup .NET
uses: actions/setup-dotnet@v4
with:
dotnet-version: 8.0.x
# Build and test
# Generate model and interfaces.
- name: Generate model and API
run: ./build/generate-models.sh
- name: Restore dependencies
run: dotnet restore KitNugs.sln
- name: Build
run: dotnet build --no-restore KitNugs.sln
- name: UnitTests
run: dotnet test --no-build --verbosity normal ./UnitTest/UnitTest.csproj
- name: IntegrationTest
run: dotnet test --no-build --verbosity normal ./IntegrationTest/IntegrationTest.csproj