build(deps-dev): bump @types/mocha from 10.0.1 to 10.0.2 in /code #106
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
name: VSCode PR | |
on: | |
pull_request: | |
branches: | |
- develop | |
- release | |
paths: | |
- 'code/**' | |
jobs: | |
vscode: | |
name: Test Extension | |
runs-on: ubuntu-latest | |
steps: | |
- uses: 'actions/checkout@v4' | |
- uses: 'actions/setup-node@v3' | |
with: | |
node-version: 16.x | |
- uses: 'actions/setup-python@v4' | |
with: | |
python-version: "3.10" | |
- run: | | |
python --version | |
python -m pip install --upgrade pip | |
python -m pip install --upgrade bump2version | |
name: Install Build Tools | |
- run: | | |
set -e | |
# Despite the script's name, this is only used to obtain a | |
# dev version number e.g. v1.2.3-dev4 | |
./scripts/make-release.sh vscode | |
name: Set Version | |
- run: | | |
set -e | |
cd code | |
npm ci | |
mkdir dist | |
npm test | |
name: Test Extension | |
- run: | | |
set -e | |
cd code | |
rm -r dist | |
npm run package | |
id: assets | |
name: Package Extension | |
- name: 'Upload Artifact' | |
uses: actions/upload-artifact@v3 | |
with: | |
name: 'vsix' | |
path: code/*.vsix |