Fixed cross-spawn dep vulnerabilities #33
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
# | |
# Copyright (C) 2023 Intel Corporation | |
# SPDX-License-Identifier: MIT | |
# | |
name: Build extension | |
on: [push] | |
permissions: | |
contents: read | |
id-token: write | |
attestations: write | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1 | |
- name: Build tcf | |
run: | | |
cd tcf | |
npm ci | |
npm run compile | |
npm pack | |
- name: Build vscode-tcf-debug | |
run: | | |
cd vscode-tcf-debug | |
npm ci | |
npm run lint | |
npm run package | |
npm pack | |
- name: Save VSIX | |
uses: actions/upload-artifact@26f96dfa697d77e81fd5907df203aa23a56210a8 # v3.0 | |
with: | |
name: vscode-tcf-debug.vsix | |
path: vscode-tcf-debug/*vsix | |
- name: Attest Build Provenance | |
uses: actions/attest-build-provenance@897ed5eab6ed058a474202017ada7f40bfa52940 # v1.0.0 | |
with: | |
subject-path: 'vscode-tcf-debug/vscode-tcf-debug.vsix' | |
- name: Run tests | |
run: | | |
cd tests | |
npm ci | |
npm run compile | |
npm run unittest |