-
Notifications
You must be signed in to change notification settings - Fork 4
37 lines (33 loc) · 1 KB
/
pull-request-master.yaml
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: Test changes made on master branch
on:
pull_request:
branches: master
paths-ignore:
- '**.md'
jobs:
build_sln:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Setup .NET
uses: actions/setup-dotnet@v4
with:
dotnet-version: |
2.x
3.x
5.x
6.x
7.x
8.x
- name: Run Tests
working-directory: src
run: dotnet test --configuration Release
- name: Build projects
run: |
PROJECTS="KissLog KissLog.RestClient KissLog.CloudListeners KissLog.AspNet.Web KissLog.AspNet.Mvc KissLog.AspNet.WebApi KissLog.AspNetCore"
for project in $PROJECTS; do
echo "Building $project..."
dotnet build "src/$project/$project.csproj" --configuration Release /p:Version=1.0.0
dotnet pack "src/$project/$project.csproj" --no-build -o . /p:PackageVersion=1.0.0
done