Merge pull request #1342 from Particular/GitHubSync-20241011-194944 #2281
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 | |
- 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-2022 | |
name: Windows | |
- os: ubuntu-22.04 | |
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 }) | |
- name: Checkout | |
uses: actions/[email protected] | |
with: | |
fetch-depth: 0 | |
- name: Setup .NET SDK | |
uses: actions/[email protected] | |
with: | |
dotnet-version: 8.0.x | |
- name: Build | |
run: dotnet build src --configuration Release | |
- name: Azure login | |
uses: azure/[email protected] | |
if: matrix.name == 'Windows' | |
with: | |
creds: ${{ secrets.AZURE_ACI_CREDENTIALS }} | |
- name: Setup RavenDB | |
id: setup-ravendb | |
uses: Particular/[email protected] | |
with: | |
single-connection-string-name: RavenSingleNodeUrl | |
cluster-connection-string-name: CommaSeparatedRavenClusterUrls | |
ravendb-license: ${{ secrets.RAVENDB_LICENSE }} | |
ravendb-mode: Both | |
tag: RavenDBPersistence | |
registry-username: ${{ secrets.DOCKERHUB_USERNAME }} | |
registry-password: ${{ secrets.DOCKERHUB_TOKEN }} | |
- name: Upload packages | |
if: matrix.name == 'Windows' | |
uses: actions/[email protected] | |
with: | |
name: NuGet packages | |
path: nugets/ | |
retention-days: 7 | |
- name: Run tests | |
uses: Particular/[email protected] |