Skip to content

Commit 5c3cdb5

Browse files
committed
[chore] implemented ci via Github actions
1 parent c175428 commit 5c3cdb5

3 files changed

Lines changed: 2528 additions & 1 deletion

File tree

.github/workflows/ci.yml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
on:
2+
push:
3+
branches:
4+
- main
5+
release:
6+
types:
7+
- created
8+
9+
jobs:
10+
build:
11+
strategy:
12+
matrix:
13+
os: [macos-latest, ubuntu-latest, windows-latest]
14+
runs-on: ${{ matrix.os }}
15+
steps:
16+
- name: Checkout
17+
uses: actions/checkout@v2
18+
- name: Install Node.js
19+
uses: actions/setup-node@v1
20+
with:
21+
node-version: 16.x
22+
- run: npm install
23+
- run: xvfb-run -a npm test
24+
if: runner.os == 'Linux'
25+
- run: npm test
26+
if: runner.os != 'Linux'
27+
- name: Publish
28+
if: success() && startsWith( github.ref, 'refs/tags/releases/') && matrix.os == 'ubuntu-latest'
29+
run: npm run deploy
30+
env:
31+
VSCE_PAT: ${{ secrets.VSCE_PAT }}
32+

0 commit comments

Comments
 (0)