-
Notifications
You must be signed in to change notification settings - Fork 11
48 lines (38 loc) · 1002 Bytes
/
npm-ci.yml
File metadata and controls
48 lines (38 loc) · 1002 Bytes
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
name: 📋 Test All
on:
push:
branches: [main]
pull_request:
branches: [main]
merge_group: {}
workflow_dispatch: {}
env:
FORCE_COLOR: true
jobs:
build-and-test:
name: 📋 Test on ${{ matrix.os }}
runs-on: ubuntu-latest
strategy:
matrix:
os: [ubuntu-latest, windows-latest, macOS-latest]
steps:
- name: 📦 Checkout Repository
uses: actions/checkout@v6
- name: 🏗️ Setup Node.js Environment
uses: actions/setup-node@v6
with:
cache: npm
cache-dependency-path: package-lock.json
- name: 🏗️ Setup project
run: npm ci
- name: 🛠️ Build projects
run: npm run compile
- name: 📋 Run Tests
timeout-minutes: 10
run: npm run test:all
- name: 🔍 Linting
run: npm run lint
- name: '📦 Package test: vscode'
working-directory: ./ide/vscode
run: |
npx vsce package --no-dependencies