Update _2024_02__NDC Sydney 2024 - so many Microsoft Heavyweights__.html #4579
Workflow file for this run
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: PR - Lint code | |
on: | |
pull_request: | |
branches: | |
- main | |
concurrency: | |
group: ci-${{ github.event.number }}-${{ github.workflow }} | |
cancel-in-progress: true | |
defaults: | |
run: | |
shell: pwsh | |
env: | |
bicepPath: "./infra/main.bicep" | |
jobs: | |
lint-infra: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Build | |
run: | | |
az bicep build --file ${{ env.bicepPath }} | |
lint-code: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: pnpm/action-setup@v3 | |
with: | |
version: 8 | |
- name: Setup node | |
uses: actions/setup-node@v4 | |
with: | |
node-version-file: ".nvmrc" | |
cache: "pnpm" | |
- run: pnpm install | |
- run: pnpm lint --max-warnings 0 |