-
Notifications
You must be signed in to change notification settings - Fork 5
56 lines (45 loc) · 1.25 KB
/
build.yml
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
name: VIVIDUS Studio CI
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
build:
runs-on: macos-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Install JDK 21
uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: 21
cache: 'maven'
- name: Build server
run: |
cd vividus-studio-server
./mvnw clean install
- name: Upload coverage reports to Codecov
if: ${{ ! github.event.pull_request.head.repo.fork || github.ref == 'refs/heads/main' }}
uses: codecov/codecov-action@v4
with:
fail_ci_if_error: true
token: ${{ secrets.CODECOV_TOKEN }}
- name: Upload coverage reports to Codecov
if: ${{ github.event.pull_request.head.repo.fork }}
uses: codecov/codecov-action@v4
- name: Install node_modules
run: npm install
- name: Extension Lint
run: npm run lint
- name: Extension Tests
uses: GabrielBB/xvfb-action@v1.6
with:
run: npm test
- name: Extension packaging
run: |
sudo npm install -g @vscode/vsce
vsce package