Skip to content

Merge pull request #3264 from Azure/autogenerate-batch #19706

Merge pull request #3264 from Azure/autogenerate-batch

Merge pull request #3264 from Azure/autogenerate-batch #19706

Workflow file for this run

name: CI
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
workflow_dispatch:
jobs:
schema-tests:
name: Schema Tests
runs-on: ubuntu-latest
permissions:
actions: read
contents: read
security-events: write
steps:
- name: Checkout repo
uses: actions/checkout@v4
- name: Initialize CodeQL
uses: github/codeql-action/init@v3
with:
languages: javascript, csharp
- 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
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v3
build-generator:
name: Build Generator
runs-on: ubuntu-latest
permissions:
actions: read
contents: read
security-events: write
steps:
- name: Checkout repo
uses: actions/checkout@v4
- name: Initialize CodeQL
uses: github/codeql-action/init@v3
with:
languages: javascript
- 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
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v3