[AutoPR workloads/resource-manager/Microsoft.Workloads/monitors] Microsoft.Workloads: Added API Version 2023-12-01-preview for AMS to public repo #19648
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: | |
pull_request: | |
branches: [ main ] | |
jobs: | |
schema-tests: | |
name: Schema Tests | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repo | |
uses: actions/checkout@v4 | |
- name: Setup Node.js | |
uses: actions/setup-node@v4 | |
with: | |
node-version: 20.x | |
- name: Setup .NET Core | |
uses: actions/setup-dotnet@v4 | |
with: | |
dotnet-version: '8.0.x' | |
- name: Install NPM modules | |
run: npm ci | |
working-directory: ./tools | |
- name: Lint | |
run: npm run lint | |
working-directory: ./tools | |
- name: Run CI tests | |
run: npm test | |
working-directory: ./tools | |
- name: Deployments Schema tests | |
run: dotnet test DeploymentsSchemaTests/DeploymentsSchemaTests.csproj | |
working-directory: ./tools | |
build-generator: | |
name: Build Generator | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repo | |
uses: actions/checkout@v4 | |
- name: Setup Node.js | |
uses: actions/setup-node@v4 | |
with: | |
node-version: 20.x | |
- name: Install | |
run: npm ci | |
working-directory: ./generator | |
- name: Lint | |
run: npm run lint | |
working-directory: ./generator | |
- name: Build | |
run: npm run build | |
working-directory: ./generator |