-
Notifications
You must be signed in to change notification settings - Fork 43
107 lines (100 loc) · 3.48 KB
/
Release.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
106
107
# ------------------------------------------------------------------------------
# <auto-generated>
#
# This code was generated.
#
# - To turn off auto-generation set:
#
# [CustomGithubActions (AutoGenerate = false)]
#
# - To trigger manual generation invoke:
#
# nuke --generate-configuration GitHubActions_Release --host GitHubActions
#
# </auto-generated>
# ------------------------------------------------------------------------------
name: Release
on:
workflow_dispatch:
inputs:
ElasticProvider:
description: "Elastic Provider"
required: true
MongoProvider:
description: "Mongo Provider"
required: true
MsSqlProvider:
description: "Ms Sql Provider"
required: true
MySqlProvider:
description: "My Sql Provider"
required: true
PostgresProvider:
description: "Postgres Provider"
required: true
Ui:
description: "Ui"
required: true
jobs:
ubuntu-latest:
name: ubuntu-latest
runs-on: ubuntu-latest
steps:
- uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: '17'
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: 'Cache: .nuke/temp, ~/.nuget/packages'
uses: actions/cache@v4
with:
path: |
.nuke/temp
~/.nuget/packages
key: ${{ runner.os }}-${{ hashFiles('**/global.json', '**/*.csproj', '**/Directory.Packages.props') }}
- name: 'Run: Publish'
run: ./build.cmd Publish
env:
ElasticProvider: ${{ github.event.inputs.ElasticProvider }}
MongoProvider: ${{ github.event.inputs.MongoProvider }}
MsSqlProvider: ${{ github.event.inputs.MsSqlProvider }}
MySqlProvider: ${{ github.event.inputs.MySqlProvider }}
PostgresProvider: ${{ github.event.inputs.PostgresProvider }}
Ui: ${{ github.event.inputs.Ui }}
SonarTokenUi: ${{ secrets.SONAR_TOKEN_UI }}
SonarToken: ${{ secrets.SONAR_TOKEN }}
NugetApiKey: ${{ secrets.NUGET_API_KEY }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- uses: phoenix-actions/test-reporting@v14
if: always()
with:
name: DotNET - Tests
output-to: checks
path: '**/test-results.trx'
reporter: dotnet-trx
fail-on-error: false
- name: SonarCloud run
uses: SonarSource/sonarcloud-github-action@master
if: github.event_name != 'pull_request'
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Needed to get PR information, if any
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN_UI }}
with:
args: >
-Dsonar.organization=followynne
-Dsonar.projectKey=followynne_serilog-ui_assets
-Dsonar.sources=src/Serilog.Ui.Web/src/
-Dsonar.tests=src/Serilog.Ui.Web/src/
-Dsonar.exclusions=src/Serilog.Ui.Web/src/__tests__/**/*,src/Serilog.Ui.Web/src/mockServiceWorker.*,src/Serilog.Ui.Web/src/style/**/*
-Dsonar.test.inclusions=src/Serilog.Ui.Web/src/__tests__/**/*
-Dsonar.javascript.lcov.reportPaths=./src/Serilog.Ui.Web/src/reports/coverage/lcov.info
- uses: phoenix-actions/test-reporting@v14
if: always()
with:
name: JS - Tests
output-to: checks
path: '**/test-junit-report.xml'
reporter: jest-junit
fail-on-error: false