-
Notifications
You must be signed in to change notification settings - Fork 0
57 lines (54 loc) · 1.61 KB
/
ci.yml
File metadata and controls
57 lines (54 loc) · 1.61 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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
name: CI
on:
push:
branches:
- develop
jobs:
build-test:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: 22
cache: npm
- name: Install dependencies
run: npm ci
- name: Install xvfb
run: sudo apt-get update && sudo apt-get install -y xvfb
- name: Lint
run: npm run lint
- name: Compile Extension
run: npm run compile
- name: Compile Integration Tests
run: npm run compile:tests
- name: Run unit tests
run: npm run test:unit
- name: Generate unit coverage reports
run: npm run coverage:unit
- name: Run integration tests
run: xvfb-run -a npm run test:integration
- name: Generate integration coverage reports
run: xvfb-run -a npm run coverage:integration
- name: List coverage files
run: |
echo "Unit coverage files:"
ls -l ./coverage/unit
echo "Integration coverage files:"
ls -l ./coverage/integration
- name: Upload unit coverage
uses: codecov/codecov-action@v4
with:
token: ${{ secrets.CODECOV_TOKEN }}
files: ./coverage/unit/lcov.info
flags: unit
disable_search: true
- name: Upload integration coverage
uses: codecov/codecov-action@v4
with:
token: ${{ secrets.CODECOV_TOKEN }}
files: ./coverage/integration/lcov.info
flags: integration
disable_search: true