business process-automation-assessment (PR from TinaCMS) #7432
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@v4 | |
with: | |
package_json_file: package.json | |
- name: Setup node | |
uses: actions/setup-node@v4 | |
with: | |
node-version-file: ".nvmrc" | |
cache: "pnpm" | |
- run: pnpm install | |
- run: pnpm lint --max-warnings 0 |