Merge pull request #1641 from Particular/renovate/ravendb.client-6.x #3415
This file contains hidden or 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 | |
| - release-* | |
| pull_request: | |
| workflow_dispatch: | |
| env: | |
| DOTNET_NOLOGO: true | |
| defaults: | |
| run: | |
| shell: pwsh | |
| jobs: | |
| build: | |
| name: ${{ matrix.name }} | |
| runs-on: ${{ matrix.os }} | |
| strategy: | |
| matrix: | |
| include: | |
| - os: windows-latest | |
| name: Windows | |
| - os: ubuntu-latest | |
| name: Linux | |
| fail-fast: false | |
| steps: | |
| - name: Check for secrets | |
| env: | |
| SECRETS_AVAILABLE: ${{ secrets.SECRETS_AVAILABLE }} | |
| run: exit $(If ($env:SECRETS_AVAILABLE -eq 'true') { 0 } Else { 1 }) | |
| - parallel: | |
| - name: Checkout | |
| uses: actions/checkout@v7.0.1 | |
| with: | |
| fetch-depth: 0 | |
| - name: Setup WSL | |
| uses: Particular/setup-wsl-action@v1.2.0 | |
| - name: Setup .NET SDK | |
| uses: actions/setup-dotnet@v6.0.0 | |
| with: | |
| global-json-file: global.json | |
| - name: Build | |
| id: build | |
| run: dotnet build src --configuration Release | |
| background: true | |
| - name: Setup RavenDB | |
| id: setup-ravendb | |
| uses: Particular/setup-ravendb-action@v2.0.0 | |
| with: | |
| single-connection-string-name: RavenSingleNodeUrl | |
| cluster-connection-string-name: CommaSeparatedRavenClusterUrls | |
| ravendb-license: ${{ secrets.RAVENDB_LICENSE }} | |
| ravendb-mode: Both | |
| registry-username: ${{ secrets.DOCKERHUB_USERNAME }} | |
| registry-password: ${{ secrets.DOCKERHUB_TOKEN }} | |
| - name: Wait for build | |
| wait: build | |
| - parallel: | |
| - name: Upload packages | |
| if: matrix.name == 'Windows' | |
| uses: actions/upload-artifact@v7.0.1 | |
| with: | |
| name: NuGet packages | |
| path: nugets/ | |
| retention-days: 7 | |
| - name: Run tests | |
| uses: Particular/run-tests-action@v1.7.0 |