feat(skills): contribute CA containerization skills gated behind aksskillsEnabledPreview #5803
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: Build | |
| on: | |
| push: | |
| branches: | |
| - main | |
| pull_request: | |
| branches: | |
| - main | |
| permissions: | |
| contents: read | |
| jobs: | |
| build: | |
| runs-on: ${{ matrix.os }} | |
| strategy: | |
| matrix: | |
| os: [macos-latest, ubuntu-latest, windows-latest] | |
| permissions: | |
| actions: read | |
| contents: read | |
| deployments: read | |
| packages: none | |
| steps: | |
| - name: Harden Runner | |
| uses: step-security/harden-runner@bf7454d06d71f1098171f2acdf0cd4708d7b5920 # v2.20.0 | |
| with: | |
| disable-sudo: true | |
| disable-telemetry: true | |
| egress-policy: block | |
| allowed-endpoints: > | |
| api.github.com:443 | |
| devdiv.pkgs.visualstudio.com:443 | |
| github.com:443 | |
| marketplace.visualstudio.com:443 | |
| nodejs.org:443 | |
| objects.githubusercontent.com:443 | |
| registry.npmjs.org:443 | |
| update.code.visualstudio.com:443 | |
| vscode.download.prss.microsoft.com:443 | |
| - name: Checkout Branch | |
| uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0 | |
| - name: Setup Node.js | |
| uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0 | |
| with: | |
| node-version: 20 | |
| - name: Build Extension | |
| run: | | |
| npm run install:all | |
| - name: Lint | |
| run: npm run lint:all | |
| - name: Smoke test (Linux) | |
| run: xvfb-run -a npm run test | |
| if: runner.os == 'Linux' | |
| - name: Smoke test (Mac, Windows) | |
| run: npm run test | |
| if: runner.os != 'Linux' | |
| - name: Package Extension | |
| if: matrix.os == 'ubuntu-latest' | |
| run: | | |
| npm run package | |
| mkdir vsix | |
| mv *.vsix vsix | |
| - name: Archive Extension | |
| if: matrix.os == 'ubuntu-latest' | |
| uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1 | |
| with: | |
| name: vsix | |
| path: vsix |