mgmt, java tag for resources policy (#33267) #3
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 | |
| defaults: | |
| run: | |
| working-directory: ./.github | |
| jobs: | |
| test: | |
| strategy: | |
| matrix: | |
| os: [ubuntu, windows] | |
| runs-on: ${{ fromJSON('{"ubuntu":"ubuntu-24.04", "windows":"windows-2022"}')[matrix.os] }} | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| with: | |
| sparse-checkout: | | |
| .github | |
| - name: Setup Node 20 and install deps | |
| uses: ./.github/actions/setup-node-install-deps | |
| with: | |
| # actions/github-script@v7 uses Node 20 | |
| node-version: 20.x | |
| working-directory: ./.github | |
| - run: npm run lint | |
| - run: npm run test:ci | |
| - name: Archive code coverage results | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: code-coverage-report-${{ matrix.os }} | |
| path: ./.github/coverage | |
| if-no-files-found: ignore |