-
Notifications
You must be signed in to change notification settings - Fork 0
69 lines (67 loc) · 2.35 KB
/
ci.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
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
name: CI
on:
push:
branches:
- master
pull_request:
types: [opened, synchronize, reopened]
jobs:
build:
runs-on: ubuntu-latest
steps:
# checkout the code
- uses: actions/checkout@v3
with:
fetch-depth: 0
submodules: recursive
# setup dotnet based on global.json
- uses: actions/setup-dotnet@v3.0.2
# run the CI build
- name: make ci
run: make ci
env:
AXONIQ_LICENSE: ${{ secrets.AXONIQ_LICENSE }}
SONAR_PROJECT_KEY: AxonIQ_axonserver-connector-dotnet
SONAR_ORGANIZATION: axoniq
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
SONAR_HOST_URL: https://sonarcloud.io
# run the CD build (on master only)
- name: make cd
if: github.ref == 'refs/heads/master'
run: make cd
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NUGET_APIKEY: ${{ secrets.NUGET_APIKEY }}
SONAR_PROJECT_KEY: AxonIQ_axonserver-connector-dotnet
SONAR_ORGANIZATION: axoniq
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
SONAR_HOST_URL: https://sonarcloud.io
- name: publish test results
uses: EnricoMi/publish-unit-test-result-action/composite@v2
if: always()
with:
files: |
test/AxonIQ.AxonServer.Connector.Tests/TestResults/*.trx
test/AxonIQ.AxonServerIntegrationTests/TestResults/*.trx
- uses: actions/upload-artifact@v3
with:
name: sequences
path: |
test/AxonIQ.AxonServer.Connector.Tests/TestResults/**/*.xml
test/AxonIQ.AxonServerIntegrationTests/TestResults/**/*.xml
- uses: actions/upload-artifact@v3
with:
name: diagnostics
path: |
test/AxonIQ.AxonServer.Connector.Tests/TestResults/*_diagnostics.txt
test/AxonIQ.AxonServerIntegrationTests/TestResults/*_diagnostics.datacollector.*.txt
test/AxonIQ.AxonServerIntegrationTests/TestResults/*_diagnostics.host.*.txt
- name: SonarCloud Scan
uses: sonarsource/sonarcloud-github-action@master
with:
args: >
-Dsonar.organization=axoniq
-Dsonar.projectKey=AxonIQ_axonserver-connector-dotnet
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}