Skip to content

Commit a4a1039

Browse files
committed
Add CI/CD workflow and update dependencies
- Add GitHub Actions workflow for linting and building - Add lint scripts to package.json - Update TypeScript and ESLint dependencies - Configure ESLint for TypeScript
1 parent 706e8c4 commit a4a1039

3 files changed

Lines changed: 4406 additions & 830 deletions

File tree

.github/workflows/ci.yml

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches: [ master ]
6+
pull_request:
7+
branches: [ master ]
8+
9+
jobs:
10+
lint-and-build:
11+
runs-on: ubuntu-latest
12+
13+
steps:
14+
- uses: actions/checkout@v4
15+
16+
- name: Setup Node.js
17+
uses: actions/setup-node@v4
18+
with:
19+
node-version: '18'
20+
cache: 'npm'
21+
22+
- name: Install dependencies
23+
run: npm ci
24+
25+
- name: Run ESLint
26+
run: npm run lint
27+
28+
- name: Build plugin
29+
run: npm run build
30+
31+
- name: Check build artifacts
32+
run: |
33+
if [ ! -f main.js ]; then
34+
echo "Error: main.js not found after build"
35+
exit 1
36+
fi
37+
if [ ! -f manifest.json ]; then
38+
echo "Error: manifest.json not found"
39+
exit 1
40+
fi
41+
echo "Build artifacts verified successfully"

0 commit comments

Comments
 (0)