-
-
Notifications
You must be signed in to change notification settings - Fork 383
101 lines (82 loc) · 2.51 KB
/
pr-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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
name: PR Check
on:
workflow_dispatch:
pull_request:
branches: [ master, v4-wip ]
jobs:
build-and-test:
strategy:
matrix:
dotnet: ['7.0']
os: [windows-latest]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v3
- name: Install dotnet
uses: actions/setup-dotnet@v3
with:
dotnet-version: ${{ matrix.dotnet }}
- name: Clean
run: dotnet clean --configuration Debug && dotnet nuget locals all --clear
- name: Restore
run: dotnet restore
- name: Build
run: dotnet build --no-restore --configuration Debug
- name: Test
run: dotnet test
publish-windows-console-exe-dist:
name: Publish Windows Console Exe Distribution
runs-on: 'windows-latest'
needs: build-and-test
strategy:
matrix:
dotnet: [ '7.0' ]
os: [ 'win10-x64' ]
steps:
- uses: actions/checkout@v3
- name: Publish Windows Console Exe Distribution
uses: ./.github/actions/publish-console-exe-dist
with:
dotnet-version: ${{ matrix.dotnet }}
os: ${{ matrix.os }}
publish-ui-dist:
name: Publish UI Distribution
runs-on: 'windows-latest'
needs: build-and-test
strategy:
matrix:
dotnet: [ '7.0.401' ]
framework: ['net7.0-windows10.0.22621.0']
os: [ 'win10-x64' ]
steps:
- uses: actions/checkout@v3
- name: Publish UI Distribution
uses: ./.github/actions/publish-ui-dist
with:
dotnet-version: ${{ matrix.dotnet }}
os: ${{ matrix.os }}
framework: ${{ matrix.framework }}
publish-docker-images:
name: Publish Docker Images
runs-on: ubuntu-latest
needs: build-and-test
strategy:
matrix:
dockerfile: ['Dockerfile.console', 'Dockerfile.api', 'Dockerfile.webui']
include:
- dockerfile: 'Dockerfile.console'
tag: 'pr-validator-console-A'
- dockerfile: 'Dockerfile.api'
tag: 'pr-validator-api-A'
- dockerfile: 'Dockerfile.webui'
tag: 'pr-validator-webui-A'
steps:
- uses: actions/checkout@v3
- name: Publish Docker Images
uses: ./.github/actions/publish-docker-images
with:
dockerfile: ${{ matrix.dockerfile }}
tag: ${{ matrix.tag }}
secret_docker_username: ${{ secrets.DOCKER_USERNAME }}
secret_docker_password: ${{ secrets.DOCKER_PASSWORD }}
secret_github_package: ${{ secrets.GH_PACKAGE_SECRET}}