Skip to content

build/test

build/test #984

Workflow file for this run

name: build/test
on:
push:
schedule:
- cron: '30 5 * * *'
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os:
- ubuntu-latest
- windows-latest
- windows-2019
steps:
- uses: actions/checkout@v3
- name: Setup .NET Core
uses: actions/setup-dotnet@v3
with:
dotnet-version: '3.1.x'
- name: Dotnet Linter
run: |
dotnet tool install -g dotnet-format
dotnet-format . --check
- name: TestOnSpot
id: runonspot
continue-on-error: true
if: always()
uses: ./.github/actions/test
with:
client_id: ${{ secrets.CLIENT_ID }}
client_secret: ${{ secrets.CLIENT_SECRET }}
client_credentials_url: ${{ secrets.CLIENT_CREDENTIALS_URL }}
custom_headers: '{"x-rai-parameter-engine-spec":"{\"experimentalFeatures\":{\"useSpotEngines\": true}}"}'
- name: SpotDebugInfo
id: spotdebugInfo
if: steps.runonspot.outcome != 'success'
run: |
echo "potential spot engine eviction check this link to confirm https://app.datadoghq.com/logs?query=service%3Aazure%20%40evt.name%3A%22Microsoft.Compute%2FvirtualMachineScaleSets%2FevictSpotVM%2Faction%22%20&agg_q=%40resourceId&cols=host%2Cservice&index=%2A&messageDisplay=inline&sort_m=count&sort_t=count&stream_sort=desc&top_n=10&top_o=top&viz=stream&x_missing=true&from_ts=1686931686080&to_ts=1686946086080&live=true"
- name: TestOnRegular
id: runonregular
if: steps.runonspot.outcome != 'success'
uses: ./.github/actions/test
with:
client_id: ${{ secrets.CLIENT_ID }}
client_secret: ${{ secrets.CLIENT_SECRET }}
client_credentials_url: ${{ secrets.CLIENT_CREDENTIALS_URL }}
custom_headers: '{"x-rai-parameter-engine-spec":"{\"experimentalFeatures\":{\"useSpotEngines\": false}}"}'