-
Notifications
You must be signed in to change notification settings - Fork 66
43 lines (33 loc) · 1004 Bytes
/
pr-build-check.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
43
name: PR Build Check
on:
push:
branches: [v15/actions]
pull_request:
branches: [v15/main]
env:
config: Release
out_folder: ./build-out/
jobs:
build-project:
runs-on: windows-latest
env:
solution_name: ./uSync.sln
test_project: ./uSync.Tests/uSync.tests.csproj
schema_gen_project: ./uSync.SchemaGenerator/uSync.SchemaGenerator.csproj
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Install .Net core
uses: actions/setup-dotnet@v4
with:
dotnet-version: 9.0.x
- name: restore
run: dotnet restore ${{ env.solution_name}}
- name: build
run: dotnet build ${{ env.solution_name }} -c ${{ env.config }} -p:ContinuousIntegrationBuild=true
- name: test
run: dotnet test ${{ env.solution_name }}
- name: Generate AppSettings Schema
run: dotnet run -c ${{env.Config}} --project ${{ env.schema_gen_project}}