-
Notifications
You must be signed in to change notification settings - Fork 0
56 lines (42 loc) · 1.52 KB
/
ci.yml
File metadata and controls
56 lines (42 loc) · 1.52 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
name: CI
on:
push:
branches: ["main", "dev"]
pull_request:
branches: ["main", "dev"]
# manual run in actions tab - for all branches
workflow_dispatch:
jobs:
build-and-test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: "20"
cache: "npm"
- name: Install dependencies
run: npm ci
- name: Compile
run: npm run compile
- name: Test — parsers
run: npx ts-node --project server/tsconfig.json tests/test-parsers.ts
- name: Test — diagnostic codes
run: TS_NODE_PROJECT=tsconfig.base.json npx ts-node tests/test-diagnostic-codes.ts
- name: Test — version settings
run: TS_NODE_PROJECT=tsconfig.base.json npx ts-node tests/test-version-settings.ts
- name: Test — fix-it hints (code actions)
run: TS_NODE_PROJECT=tsconfig.base.json npx ts-node tests/test-fix-it-hints.ts
- name: Test — line directive utils
run: TS_NODE_PROJECT=tsconfig.base.json npx ts-node tests/test-line-directive.ts
- name: Test — new providers
run: TS_NODE_PROJECT=tsconfig.base.json npx ts-node tests/test-new-providers.ts
- name: Package VSIX
run: npx vsce package --no-dependencies -o extension.vsix
- name: Upload VSIX artifact
uses: actions/upload-artifact@v4
with:
name: extension-vsix
path: extension.vsix
retention-days: 30