mirror of
https://github.com/microsoft/vscode.git
synced 2026-08-18 05:06:39 +01:00
* Pin GitHub Actions to full-length commit SHAs * chore: attest to third-party action pinning changes I have reviewed the action-pinning diff authored by OssSecurityBot and verified that each pinned SHA resolves to the same commit the tag it replaces pointed at, and that no workflow logic was altered beyond the `uses:` references. This commit is signed with my key from security/trusted-signing-keys.csv so the attestation is bound to my identity and to this exact tree. Any subsequent push replaces the head and invalidates it. Refs #328868 Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> --------- Co-authored-by: OssSecurityBot <oss-security-bot@microsoft.com> Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
56 lines
1.4 KiB
YAML
56 lines
1.4 KiB
YAML
name: chat-lib tests
|
|
|
|
on:
|
|
pull_request:
|
|
workflow_dispatch:
|
|
|
|
permissions:
|
|
contents: read
|
|
|
|
concurrency:
|
|
group: chat-lib-tests-${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
|
|
cancel-in-progress: true
|
|
|
|
jobs:
|
|
test:
|
|
name: chat-lib tests (${{ matrix.os }})
|
|
runs-on: ${{ matrix.os }}
|
|
timeout-minutes: 30
|
|
strategy:
|
|
fail-fast: false
|
|
matrix:
|
|
os: [ubuntu-latest, macos-latest, windows-latest]
|
|
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@d23441a48e516b6c34aea4fa41551a30e30af803 # v6.1.0
|
|
|
|
- name: Setup Node.js
|
|
uses: actions/setup-node@249970729cb0ef3589644e2896645e5dc5ba9c38 # v6.5.0
|
|
with:
|
|
node-version-file: extensions/copilot/.nvmrc
|
|
cache: npm
|
|
cache-dependency-path: |
|
|
extensions/copilot/package-lock.json
|
|
extensions/copilot/chat-lib/package-lock.json
|
|
|
|
- name: Extract chat-lib
|
|
shell: bash
|
|
working-directory: extensions/copilot
|
|
run: |
|
|
npm ci
|
|
npm run extract-chat-lib
|
|
rm -rf node_modules
|
|
|
|
- name: Install chat-lib dependencies
|
|
working-directory: extensions/copilot/chat-lib
|
|
run: npm ci
|
|
|
|
- name: Build chat-lib
|
|
working-directory: extensions/copilot/chat-lib
|
|
run: npm run build
|
|
|
|
- name: Test chat-lib
|
|
working-directory: extensions/copilot/chat-lib
|
|
run: npm test
|