auth: Add changes to be compatible with the new tenant view #656
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: Node PR Lint, Build and Test | |
on: | |
# Trigger on pull requests to `main` or `rel/*` | |
pull_request: | |
branches: | |
- main | |
- rel/* | |
jobs: | |
ChangedPackages: | |
# Determine changed subpaths to run the matrix on | |
# See https://github.com/dorny/paths-filter/tree/v2/#examples | |
runs-on: ubuntu-latest | |
steps: | |
- name: Determine changed packages | |
uses: dorny/paths-filter@v2 | |
id: filter | |
with: | |
filters: | | |
appservice: "appservice/**" | |
appsettings: "appsettings/**" | |
auth: "auth/**" | |
azure: "azure/**" | |
dev: "dev/**" | |
eslint-config-azuretools: "eslint-config-azuretools/**" | |
github: "github/**" | |
serviceconnector: "serviceconnector/**" | |
utils: "utils/**" | |
outputs: | |
# Expose matched filters as job 'packages' output variable | |
packages: ${{ steps.filter.outputs.changes }} | |
Build: | |
if: ${{ fromJson(needs.ChangedPackages.outputs.packages)[0] != null }} | |
# Use template from https://github.com/microsoft/vscode-azuretools/blob/main/.github/workflows/jobs.yml | |
uses: ./.github/workflows/jobs.yml | |
needs: [ChangedPackages] | |
with: | |
working_directory: ${{ matrix.package }} | |
strategy: | |
matrix: | |
package: ${{ fromJson(needs.ChangedPackages.outputs.packages) }} | |
CheckResults: # required for GtiHub PR rules | |
# Require all jobs under `build` to have succeeded | |
# See https://github.com/orgs/community/discussions/26822 | |
if: ${{ always() }} | |
needs: [Build, ChangedPackages] | |
runs-on: ubuntu-latest | |
steps: | |
- run: exit 1 | |
if: ${{ (fromJson(needs.ChangedPackages.outputs.packages)[0] != null) && contains(needs.*.result, 'failure') || contains(needs.*.result, 'cancelled') }} |