-
Notifications
You must be signed in to change notification settings - Fork 24
105 lines (96 loc) · 3.43 KB
/
build-and-test.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
102
103
104
105
name: CI
# Controls when the action will run. Triggers the workflow on push or pull request
on:
push:
branches:
- dev
- future
tags:
- v[0-9]+.[0-9]+.[0-9]+ # Matches all semantic versioning tags with major, minor, patch
pull_request:
branches:
- dev
- future
env:
MORYX_OPTIMIZE_CODE: "false"
MORYX_BUILD_CONFIG: "Release"
MORYX_BUILDNUMBER: ${{github.run_number}}
dotnet_sdk_version: '7.x'
DOTNET_SKIP_FIRST_TIME_EXPERIENCE: true
REPOSITORY_NAME: ${{ github.event.repository.name }}
jobs:
Build:
uses: PHOENIXCONTACT/tools/.github/workflows/build-tool.yml@release-6
with:
MORYX_OPTIMIZE_CODE: "false"
MORYX_BUILD_CONFIG: "Release"
MORYX_BUILDNUMBER: ${{github.run_number}}
dotnet_sdk_version: '7.x'
DOTNET_SKIP_FIRST_TIME_EXPERIENCE: true
REPOSITORY_NAME: ${{ github.event.repository.name }}
UnitTests:
needs: [Build]
uses: PHOENIXCONTACT/tools/.github/workflows/unittest-tool.yml@release-6
with:
MORYX_OPTIMIZE_CODE: "false"
MORYX_BUILD_CONFIG: "Release"
MORYX_BUILDNUMBER: ${{github.run_number}}
dotnet_sdk_version: '7.x'
DOTNET_SKIP_FIRST_TIME_EXPERIENCE: true
REPOSITORY_NAME: ${{ github.event.repository.name }}
IntegrationTests:
needs: [Build]
uses: PHOENIXCONTACT/tools/.github/workflows/integrationtest-tool.yml@release-6
with:
MORYX_OPTIMIZE_CODE: "false"
MORYX_BUILD_CONFIG: "Release"
MORYX_BUILDNUMBER: ${{github.run_number}}
dotnet_sdk_version: '7.x'
DOTNET_SKIP_FIRST_TIME_EXPERIENCE: true
REPOSITORY_NAME: ${{ github.event.repository.name }}
ReportGenerator:
needs: [UnitTests, IntegrationTests]
uses: PHOENIXCONTACT/tools/.github/workflows/reportgenerator-tool.yml@release-6
with:
MORYX_OPTIMIZE_CODE: "false"
MORYX_BUILD_CONFIG: "Release"
MORYX_BUILDNUMBER: ${{github.run_number}}
dotnet_sdk_version: '7.x'
DOTNET_SKIP_FIRST_TIME_EXPERIENCE: true
REPOSITORY_NAME: ${{ github.event.repository.name }}
Publish-Test-Coverage:
needs: [ReportGenerator]
uses: PHOENIXCONTACT/tools/.github/workflows/publish-test-coverage-tool.yml@release-6
with:
MORYX_OPTIMIZE_CODE: "false"
MORYX_BUILD_CONFIG: "Release"
MORYX_BUILDNUMBER: ${{github.run_number}}
dotnet_sdk_version: '7.x'
DOTNET_SKIP_FIRST_TIME_EXPERIENCE: true
REPOSITORY_NAME: ${{ github.event.repository.name }}
secrets:
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
Documentation:
needs: [UnitTests]
uses: PHOENIXCONTACT/tools/.github/workflows/documentation-tool.yml@release-6
with:
MORYX_OPTIMIZE_CODE: "false"
MORYX_BUILD_CONFIG: "Release"
MORYX_BUILDNUMBER: ${{github.run_number}}
dotnet_sdk_version: '7.x'
DOTNET_SKIP_FIRST_TIME_EXPERIENCE: true
REPOSITORY_NAME: ${{ github.event.repository.name }}
Publish:
needs: [UnitTests]
uses: PHOENIXCONTACT/tools/.github/workflows/publish-tool.yml@release-6
with:
MORYX_OPTIMIZE_CODE: "false"
MORYX_BUILD_CONFIG: "Release"
MORYX_BUILDNUMBER: ${{github.run_number}}
dotnet_sdk_version: '7.x'
DOTNET_SKIP_FIRST_TIME_EXPERIENCE: true
REPOSITORY_NAME: ${{ github.event.repository.name }}
secrets:
MYGET_TOKEN: ${{secrets.MYGET_TOKEN}}
NUGET_TOKEN: ${{secrets.NUGET_TOKEN}}