Skip to content

build(deps-dev): bump @types/mocha from 10.0.1 to 10.0.2 #681

build(deps-dev): bump @types/mocha from 10.0.1 to 10.0.2

build(deps-dev): bump @types/mocha from 10.0.1 to 10.0.2 #681

Workflow file for this run

name: CI
on:
push:
branches: [main]
pull_request:
branches: [main]
release:
types: [created]
jobs:
test:
strategy:
matrix:
os: [ubuntu-latest, windows-latest]
runs-on: ${{ matrix.os }}
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Install Node.js
uses: actions/setup-node@v3
- run: npm install
- run: xvfb-run -a npm test
if: runner.os == 'Linux'
- run: npm test
if: runner.os != 'Linux'
sonarcloud:
needs: ["test"]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis
- name: Install Node.js
uses: actions/setup-node@v3
- run: npm install
- run: xvfb-run -a npm test
- uses: SonarSource/sonarcloud-github-action@master
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Needed to get PR information, if any
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
publish:
if: success() && startsWith( github.ref, 'refs/tags/v')
needs: ["test", "sonarcloud"]
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Install Node.js
uses: actions/setup-node@v3
- run: npm install
- run: npm run compile
- run: npm run deploy
env:
VSCE_PAT: ${{ secrets.VSCE_PAT }}