-
Notifications
You must be signed in to change notification settings - Fork 14
94 lines (71 loc) · 2.08 KB
/
Copy pathci.yml
File metadata and controls
94 lines (71 loc) · 2.08 KB
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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
name: CI
on:
push:
branches: [ "*" ]
tags-ignore: [ "**" ]
pull_request:
branches: [ main, develop ]
jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v5
- name: Setup Node.js
uses: actions/setup-node@v6
with:
node-version: '24.x'
cache: 'npm'
- name: Install dependencies
run: npm install
- name: Install autobuild
run: npm run bootstrap:autobuild
- name: Sync definition artifacts
run: npm run definitions:sync
- name: Run linter
run: npm run lint
- name: Compile TypeScript
run: npm run compile
- name: Setup virtual display
run: |
sudo apt-get update
sudo apt-get install -y xvfb
- name: Run full test suite
run: xvfb-run -a npm test
build:
needs: test
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v5
- name: Setup Node.js
uses: actions/setup-node@v6
with:
node-version: '24.x'
cache: 'npm'
- name: Install dependencies
run: npm install
- name: Install autobuild
run: npm run bootstrap:autobuild
- name: Sync definition artifacts
run: npm run definitions:sync
- name: Install vsce (VS Code Extension Manager)
run: npm install -g @vscode/vsce
- name: Compile extension
run: npm run vscode:prepublish
- name: Get build SHA
id: version
run: echo "sha_short=$(echo ${{ github.sha }} | cut -c1-8)" >> $GITHUB_OUTPUT
- name: Package extension
run: vsce package
- name: Get package filename
id: package
run: |
PACKAGE_FILE=$(ls *.vsix | head -1)
echo "filename=$PACKAGE_FILE" >> $GITHUB_OUTPUT
- name: Upload VSIX artifact
uses: actions/upload-artifact@v4
with:
name: vscode-extension-${{ steps.version.outputs.sha_short }}
path: ${{ steps.package.outputs.filename }}
retention-days: 30