-
-
Notifications
You must be signed in to change notification settings - Fork 27
39 lines (31 loc) · 1.05 KB
/
ci.yml
File metadata and controls
39 lines (31 loc) · 1.05 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
name: CI
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
# Node 22+ required for lint-staged v17 (needs >= 22.22.1).
# VS Code 1.95+ compatibility is unaffected — the compiled .vsix runs
# inside VS Code's own Node host, not the CI build environment.
node-version: [22.x]
steps:
- uses: actions/checkout@v4
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
cache: 'npm'
- name: Install Dependencies
run: npm ci
- name: Build and Lint
# 'compile' script runs: check-types && lint && node esbuild.js
run: npm run compile
- name: Test
if: runner.os == 'Linux' # vscode-test requires a display server or xvfb on Linux, skipping for simple CI for now or strictly running unit tests
run: echo "Skipping UI tests in headless CI for now"