-
Notifications
You must be signed in to change notification settings - Fork 17
62 lines (62 loc) · 1.71 KB
/
ci.yml
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
name: CI
on:
push:
branches:
- master
- release-*
pull_request:
workflow_dispatch:
env:
DOTNET_NOLOGO: true
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 }}
shell: pwsh
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
dotnet-quality: 'preview'
- 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
- 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]