forked from PensionDanmarkOpenSource/STIL.ServiceClient
-
Notifications
You must be signed in to change notification settings - Fork 3
29 lines (29 loc) · 828 Bytes
/
Copy pathpullrequests.yml
File metadata and controls
29 lines (29 loc) · 828 Bytes
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
name: Build validation
on:
workflow_dispatch:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
paths-ignore:
- '**/README.md'
- '**/.github/**'
jobs:
publish:
name: build & test
runs-on: ubuntu-latest
env:
PROJECT_PATH: ./src/STIL.ServiceClient/STIL.ServiceClient.csproj
TEST_PATH: ./src/STIL.ServiceClient.Tests/STIL.ServiceClient.Tests.csproj
steps:
- uses: actions/checkout@v7
- name: Setup dotnet
uses: actions/setup-dotnet@v6
with:
dotnet-version: 10.0.x
- name: Install dependencies
run: dotnet restore ${{ env.PROJECT_PATH }}
- name: Build
run: dotnet build ${{ env.PROJECT_PATH }} -c Release --no-restore
- name: Test
run: dotnet test ${{ env.TEST_PATH }} -c Release