tenseleyflow/dlm-vsc / 0c1b511

Browse files

Add CI workflow and .vscodeignore for clean packaging

Authored by mfwolffe <wolffemf@dukes.jmu.edu>
SHA
0c1b5116321af378c248c39286368ae777dc0407
Parents
cec155b
Tree
e261a71

2 changed files

StatusFile+-
A .github/workflows/ci.yml 37 0
A .vscodeignore 13 0
.github/workflows/ci.ymladded
@@ -0,0 +1,37 @@
1
+name: CI
2
+
3
+on:
4
+  push:
5
+    branches: [trunk]
6
+  pull_request:
7
+    branches: [trunk]
8
+
9
+concurrency:
10
+  group: ${{ github.workflow }}-${{ github.ref }}
11
+  cancel-in-progress: true
12
+
13
+jobs:
14
+  build-test:
15
+    name: build / test
16
+    runs-on: ubuntu-latest
17
+    steps:
18
+      - uses: actions/checkout@v4
19
+
20
+      - name: Setup Node.js
21
+        uses: actions/setup-node@v4
22
+        with:
23
+          node-version: 20
24
+
25
+      - name: Install dependencies
26
+        run: npm ci
27
+
28
+      - name: Build extension
29
+        run: npm run build
30
+
31
+      - name: Compile tests
32
+        run: npx tsc -p test/tsconfig.json
33
+
34
+      - name: Run tests
35
+        uses: coactions/setup-xvfb@v1
36
+        with:
37
+          run: npm test
.vscodeignoreadded
@@ -0,0 +1,13 @@
1
+src/**
2
+test/**
3
+out-test/**
4
+node_modules/**
5
+.github/**
6
+.vscode/**
7
+.docs/**
8
+.gitignore
9
+tsconfig.json
10
+test/tsconfig.json
11
+package-lock.json
12
+*.ts
13
+!out/**