Skip to content

Conflict fixes

Conflict fixes #98

Workflow file for this run

name: CI
on:
push:
branches: [ main ]
jobs:
integrationtests:
name: Integration Tests
runs-on: windows-latest
steps:
- uses: actions/setup-dotnet@v1
with:
dotnet-version: 6.0.100
- uses: actions/checkout@v2.4.0
- run: dotnet test
working-directory: LogAnalytics.Client/LogAnalytics.Client.IntegrationTests
env:
SECRETS_LOCATION: "GitHubActions"
GHA_LAW_ID: "${{secrets.GHA_LAW_ID}}"
GHA_LAW_KEY: "${{secrets.GHA_LAW_KEY}}"
GHA_LAW_PRINCIPAL_CLIENTID: "${{secrets.GHA_LAW_PRINCIPAL_CLIENTID}}"
GHA_LAW_PRINCIPAL_CLIENTSECRET: "${{secrets.GHA_LAW_PRINCIPAL_CLIENTSECRET}}"
GHA_LAW_PRINCIPAL_DOMAIN: "${{secrets.GHA_LAW_PRINCIPAL_DOMAIN}}"
GHA_LAW_RESOURCE_ID: "${{secrets.GHA_LAW_RESOURCE_ID}}"
GHA_LAW_TENANTID: "${{secrets.GHA_LAW_TENANTID}}"
unittests:
name: Unit Tests
runs-on: windows-latest
steps:
- uses: actions/setup-dotnet@v1
with:
dotnet-version: 6.0.100
- uses: actions/checkout@v2.4.0
- run: dotnet test
working-directory: LogAnalytics.Client/LogAnalytics.Client.UnitTests
buildandpublish:
name: Build and Publish NuGet
needs: [unittests,integrationtests] # ensure we run the unit tests, and integration tests before we start building and packaging.
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2.4.0
- name: DevSkim
uses: microsoft/DevSkim-Action@v1
- name: Wire up .NET Core
uses: actions/setup-dotnet@v1
with:
dotnet-version: 6.0.100
- name: Install dependencies
run: dotnet restore
working-directory: LogAnalytics.Client/LogAnalytics.Client
- name: Build
run: dotnet build --configuration Release --no-restore
working-directory: LogAnalytics.Client/LogAnalytics.Client
- name: Publish LogAnalytics.Client
uses: brandedoutcast/publish-nuget@v2.5.5
with:
PROJECT_FILE_PATH: LogAnalytics.Client/LogAnalytics.Client/LogAnalytics.Client.csproj
NUGET_KEY: ${{secrets.NUGET_LOGANALYTICS_APIKEY}}