forked from vscode-kubernetes-tools/vscode-kubernetes-tools
-
Notifications
You must be signed in to change notification settings - Fork 0
60 lines (58 loc) · 1.43 KB
/
build-dev.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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
name: Development build
on:
push:
branches:
- master
pull_request:
branches:
- master
jobs:
build:
runs-on: ${{ matrix.os }}
permissions:
actions: read
contents: read
deployments: read
packages: none
env:
NODE_OPTIONS: --max_old_space_size=4096 --openssl-legacy-provider
strategy:
matrix:
os: [macos-latest, ubuntu-latest, windows-latest]
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Use node.js
uses: actions/setup-node@v4
with:
node-version: 20
- name: Install dependencies
run: npm install
- name: Prepare environment
run: |
npm install -g typescript
npm install -g gulp
npm install -g vsce
- name: Build
run: npm run compile
- name: Lint extension source
run: gulp tslint
- name: Smoke test (Linux)
run: xvfb-run -a npm run test
if: runner.os == 'Linux'
- name: Smoke test (Mac, Windows)
run: npm run test
if: runner.os != 'Linux'
- name: Package extension
if: github.event_name == 'push' && matrix.os == 'ubuntu-latest'
run: |
npm run package
vsce package
mkdir vsix
mv *.vsix vsix
- name: Archive extension
if: github.event_name == 'push' && matrix.os == 'ubuntu-latest'
uses: actions/upload-artifact@v4
with:
name: vsix
path: vsix