-
Notifications
You must be signed in to change notification settings - Fork 33
40 lines (36 loc) · 1.06 KB
/
ci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
name: CI
on: [push, pull_request]
jobs:
build:
strategy:
matrix:
os: [macos-latest, ubuntu-latest, windows-latest]
runs-on: ${{ matrix.os }}
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Install Node.js
uses: actions/setup-node@v1
with:
node-version: 20.x
- run: npm install
- name: Lint
run: npm run lint
- name: Build .vsix package
if: matrix.os != 'ubuntu-latest'
run: npm run package
- name: Build .vsix package on Linux
if: matrix.os == 'ubuntu-latest'
run: |
VERSION=$(node -p "require('./package.json').version")
npx @vscode/vsce package -o vscode-kafka-${VERSION}-${GITHUB_RUN_ID}-${GITHUB_RUN_NUMBER}.vsix
- name: Run tests
uses: GabrielBB/[email protected]
with:
run: npm test
- name: Upload linux-built vsix
if: matrix.os == 'ubuntu-latest'
uses: actions/upload-artifact@v2
with:
name: vscode-kafka
path: vscode-kafka*.vsix