Bump sinon from 18.0.0 to 19.0.2 #2539
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: CI | |
on: | |
push: | |
pull_request: | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
node-version: [16.x, 18.x] | |
name: Node ${{ matrix.node-version }} | |
steps: | |
- uses: actions/checkout@v1 | |
- name: Setup node | |
uses: actions/setup-node@v1 | |
with: | |
node-version: ${{ matrix.node-version }} | |
- name: Install Dependencies | |
run: npm install | |
- name: Lint | |
run: npm run lint | |
- name: Test (Linux) | |
run: xvfb-run -a npm test | |
if: runner.os == 'Linux' | |
- name: Test (non-Linux) | |
run: npm test | |
if: runner.os != 'Linux' | |
- name: Vscode package plugin | |
uses: JCofman/vscodeaction@master | |
with: | |
args: package -o package.vsix | |
- uses: actions/upload-artifact@v2 | |
with: | |
name: package | |
path: package.vsix | |
release: | |
if: startsWith(github.ref, 'refs/tags/v') && !endsWith(github.ref, '-pre') | |
needs: build | |
runs-on: ubuntu-latest | |
name: Release | |
steps: | |
- uses: actions/checkout@v1 | |
- uses: actions/download-artifact@v2 | |
with: | |
name: package | |
- name: Publish to Open VSX Registry | |
uses: HaaLeo/publish-vscode-extension@v1 | |
with: | |
pat: ${{ secrets.OPEN_VSX_TOKEN }} | |
extensionFile: package.vsix | |
- name: Publish to Visual Studio Marketplace | |
uses: HaaLeo/publish-vscode-extension@v1 | |
with: | |
pat: ${{ secrets.PUBLISHER_TOKEN }} | |
registryUrl: https://marketplace.visualstudio.com | |
extensionFile: package.vsix | |
pre-release: | |
if: endsWith(github.ref, '-pre') | |
needs: build | |
runs-on: ubuntu-latest | |
name: Pre-release | |
steps: | |
- uses: actions/checkout@v1 | |
- name: Setup node | |
uses: actions/setup-node@v1 | |
with: | |
node-version: 18.x | |
- run: npm install | |
- name: Vscode release plugin | |
uses: JCofman/vscodeaction@master | |
env: | |
PUBLISHER_TOKEN: ${{ secrets.PUBLISHER_TOKEN }} | |
with: | |
args: publish -p $PUBLISHER_TOKEN --pre-release |