Skip to content

Commit d07097c

Browse files
committed
feature: add CI for VSCode extension
This GitHub Action runs ESLint to check the TypeScript code in the VSCode extension.
1 parent 292ea37 commit d07097c

1 file changed

Lines changed: 36 additions & 0 deletions

File tree

.github/workflows/typescript.yml

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
name: Continious integration for VSCode extension
2+
on:
3+
push:
4+
branches:
5+
- master
6+
jobs:
7+
eslint:
8+
name: 'Node.js v${{ matrix.node }}'
9+
runs-on: ubuntu-latest
10+
strategy:
11+
matrix:
12+
node:
13+
- 22
14+
15+
steps:
16+
- uses: actions/setup-node@v3
17+
with:
18+
node-version: '${{ matrix.node }}'
19+
20+
- uses: actions/checkout@v4
21+
22+
- name: 'Cache node_modules'
23+
uses: actions/cache@v4
24+
with:
25+
path: ~/.npm
26+
key: ${{ runner.os }}-node-v${{ matrix.node }}-${{ hashFiles('**/package.json') }}
27+
restore-keys: |
28+
${{ runner.os }}-node-v${{ matrix.node }}-
29+
30+
- name: 'Install Dependencies'
31+
run: npm ci
32+
working-directory: ./vscode
33+
34+
- name: 'Run ESLint'
35+
run: npm run eslint-check
36+
working-directory: ./vscode

0 commit comments

Comments
 (0)