-
Notifications
You must be signed in to change notification settings - Fork 442
43 lines (41 loc) · 1.28 KB
/
pr-verify.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
name: pr-verify
on: [push, pull_request]
jobs:
pr-verify-job:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [macos-latest, ubuntu-latest]
steps:
- name: Check Out Code
uses: actions/checkout@v4
- name: Set Up NodeJS
uses: actions/setup-node@v4
with:
node-version: '18'
- name: Set Up Java
uses: actions/setup-java@v4
with:
java-version: '17'
distribution: 'adopt'
- run: npm install -g typescript "vsce"
- run: wget http://download.eclipse.org/jdtls/snapshots/jdt-language-server-latest.tar.gz
- run: mkdir server && tar -xvzf jdt-language-server-latest.tar.gz -C ./server && rm jdt-language-server-latest.tar.gz
- run: npm install
- run: npm run repo:check
- run: npm run compile
- run: npm run vscode:prepublish
- run: vsce package
- run: ls -ll java-*vsix
- run: npm run eslint
- name: Run Tests
if: runner.os == 'Linux'
env:
SKIP_COMMANDS_TEST: true
run: $(echo "xvfb-run --auto-servernum") npm run test --silent
- name: Run Tests
if: runner.os != 'Linux'
env:
SKIP_COMMANDS_TEST: true
SKIP_CLASSPATH_TEST: true
run: npm run test --silent