Skip to content

CI

CI #2385

Workflow file for this run

name: CI
on:
push:
branches:
- master
- release-*
pull_request:
workflow_dispatch:
env:
DOTNET_NOLOGO: true
jobs:
build:
name: ${{ matrix.os-name }}-${{ matrix.framework }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ windows-2019, ubuntu-20.04 ]
framework: [ net8.0, net481 ]
include:
- os: windows-2019
os-name: Windows
- os: ubuntu-20.04
os-name: Linux
exclude:
- os: ubuntu-20.04
framework: net481
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
- name: Build
run: dotnet build src --configuration Release
- name: Upload packages
if: matrix.os-name == 'Windows' && matrix.framework == 'net8.0'
uses: actions/[email protected]
with:
name: NuGet packages
path: nugets/
retention-days: 7
- name: Azure login
uses: azure/[email protected]
with:
creds: ${{ secrets.AZURE_ACI_CREDENTIALS }}
- name: Setup Azure Service Bus
uses: Particular/[email protected]
with:
connection-string-name: AzureServiceBus_ConnectionString
tag: ASBTransport
- name: Run tests
uses: Particular/[email protected]
with:
framework: ${{ matrix.framework }}