-
Notifications
You must be signed in to change notification settings - Fork 0
48 lines (46 loc) · 1.37 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
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/[email protected]
# run the CI build
- name: make ci
run: make ci
env:
AXONIQ_LICENSE: ${{ secrets.AXONIQ_LICENSE }}
# 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 }}
- 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
- 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 }}