Add 2025-12-01-preview api for Microsoft.Network expressRouteLags resource #4309
Workflow file for this run
This file contains hidden or 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: GitHub Actions - Test | |
| on: | |
| push: | |
| branches: | |
| - main | |
| paths: | |
| - .github/** | |
| pull_request: | |
| paths: | |
| - .github/** | |
| workflow_dispatch: | |
| permissions: | |
| contents: read | |
| jobs: | |
| test: | |
| strategy: | |
| matrix: | |
| folder: [.github, .github/shared] | |
| os: [ubuntu, windows] | |
| runs-on: ${{ fromJSON('{"ubuntu":"ubuntu-24.04", "windows":"windows-2022"}')[matrix.os] }} | |
| defaults: | |
| run: | |
| working-directory: ./${{ matrix.folder }} | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v6 | |
| with: | |
| sparse-checkout: | | |
| .github | |
| # Content copied from https://raw.githubusercontent.com/rhysd/actionlint/2ab3a12c7848f6c15faca9a92612ef4261d0e370/.github/actionlint-matcher.json | |
| - if: ${{ matrix.folder == '.github' && matrix.os == 'ubuntu'}} | |
| name: Add ActionLint Problem Matcher | |
| run: echo "::add-matcher::.github/matchers/actionlint.json" | |
| - if: ${{ matrix.folder == '.github' && matrix.os == 'ubuntu'}} | |
| name: Lint workflows | |
| uses: docker://rhysd/actionlint:1.7.10 | |
| with: | |
| args: -color -verbose | |
| - if: ${{ matrix.folder == '.github' }} | |
| name: Install dependencies for github-script actions | |
| uses: ./.github/actions/install-deps-github-script | |
| - if: ${{ matrix.folder == '.github' }} | |
| name: Verify all modules are importable | |
| uses: actions/github-script@v8 | |
| with: | |
| script: | | |
| const { join } = await import("path"); | |
| const { pathToFileURL } = await import("url"); | |
| const fullPath = join(process.env.GITHUB_WORKSPACE, ".github", "workflows", "src", "github-test.js"); | |
| const { default: importAllModules } = await import(pathToFileURL(fullPath).href); | |
| await importAllModules({ core }); | |
| - name: Install dev deps | |
| uses: ./.github/actions/setup-node-install-deps | |
| with: | |
| # actions/github-script@v8 uses Node 24 | |
| node-version: 24.x | |
| working-directory: ./${{ matrix.folder }} | |
| - run: npm run lint | |
| - run: npm run format:check:ci | |
| - run: npm run test:ci | |
| - name: Archive code coverage results | |
| uses: actions/upload-artifact@v6 | |
| with: | |
| name: code-coverage-report-${{ matrix.os }}-${{ fromJSON('{".github":"github", ".github/shared":"github-shared"}')[matrix.folder] }} | |
| path: ./${{ matrix.folder }}/coverage | |
| if-no-files-found: ignore |