chore(deps): bump actions/checkout from 3 to 4 #306
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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@v4 | |
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 }} | |
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 }} |