Skip to content

Commit 1c727b0

Browse files
authored
chore: Support command tests (#519)
* Support command tests
1 parent 706c085 commit 1c727b0

29 files changed

+3019
-179
lines changed

.github/workflows/build.yml

Lines changed: 0 additions & 150 deletions
This file was deleted.

.github/workflows/linux.yml

Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches: [ main ]
6+
pull_request:
7+
branches: [ main ]
8+
9+
jobs:
10+
linux:
11+
name: Linux
12+
runs-on: ubuntu-latest
13+
timeout-minutes: 30
14+
steps:
15+
- uses: actions/checkout@v2
16+
17+
- name: Setup Build Environment
18+
run: |
19+
sudo apt-get update
20+
sudo apt-get install -y libxkbfile-dev pkg-config libsecret-1-dev libxss1 dbus xvfb libgtk-3-0 libgbm1
21+
sudo /usr/bin/Xvfb :99 -screen 0 1024x768x24 > /dev/null 2>&1 &
22+
sleep 3
23+
24+
- name: Set up JDK 11
25+
uses: actions/setup-java@v1
26+
with:
27+
java-version: '11'
28+
29+
- name: Setup Node.js environment
30+
uses: actions/setup-node@v2
31+
with:
32+
node-version: 12
33+
34+
- name: Install Node.js modules
35+
run: npm install
36+
37+
- name: Install Gulp
38+
run: npm install -g gulp
39+
40+
- name: Install VSCE
41+
run: npm install -g vsce
42+
43+
- name: Build OSGi bundle
44+
run: npm run build-server
45+
46+
- name: Build VSIX file
47+
run: vsce package
48+
49+
- name: Test extension
50+
run: DISPLAY=:99 npm test
51+
52+
- name: Print language server Log if job failed
53+
if: ${{ failure() }}
54+
run: find $HOME/.config/Code/User/workspaceStorage/*/redhat.java/jdt_ws/.metadata/.log -print -exec cat '{}' \;;

.github/workflows/linuxUI.yml

Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches: [ main ]
6+
pull_request:
7+
branches: [ main ]
8+
9+
jobs:
10+
linuxUI:
11+
name: Linux-UI
12+
runs-on: ubuntu-latest
13+
timeout-minutes: 30
14+
steps:
15+
- uses: actions/checkout@v2
16+
17+
- name: Setup Build Environment
18+
run: |
19+
sudo apt-get update
20+
sudo apt-get install -y libxkbfile-dev pkg-config libsecret-1-dev libxss1 dbus xvfb libgtk-3-0 libgbm1
21+
sudo /usr/bin/Xvfb :99 -screen 0 1024x768x24 > /dev/null 2>&1 &
22+
sleep 3
23+
24+
- name: Set up JDK 11
25+
uses: actions/setup-java@v1
26+
with:
27+
java-version: '11'
28+
29+
- name: Setup Node.js environment
30+
uses: actions/setup-node@v2
31+
with:
32+
node-version: 12
33+
34+
- name: Install Node.js modules
35+
run: npm install
36+
37+
- name: Install Gulp
38+
run: npm install -g gulp
39+
40+
- name: Install VSCE
41+
run: npm install -g vsce
42+
43+
- name: Build OSGi bundle
44+
run: npm run build-server
45+
46+
- name: Build VSIX file
47+
run: vsce package
48+
49+
- name: Test extension
50+
run: DISPLAY=:99 npm run test-ui
51+
52+
- name: Print language server Log
53+
if: ${{ failure() }}
54+
run: find ./test-resources/settings/User/workspaceStorage/*/redhat.java/jdt_ws/.metadata/.log -print -exec cat '{}' \;;

.github/workflows/macOS.yml

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches: [ main ]
6+
pull_request:
7+
branches: [ main ]
8+
9+
jobs:
10+
darwin:
11+
name: macOS
12+
runs-on: macos-latest
13+
timeout-minutes: 30
14+
steps:
15+
- uses: actions/checkout@v2
16+
17+
- name: Set up JDK 11
18+
uses: actions/setup-java@v1
19+
with:
20+
java-version: '11'
21+
22+
- name: Setup Node.js environment
23+
uses: actions/setup-node@v2
24+
with:
25+
node-version: 12
26+
27+
- name: Install Node.js modules
28+
run: npm install
29+
30+
- name: Install Gulp
31+
run: npm install -g gulp
32+
33+
- name: Install VSCE
34+
run: npm install -g vsce
35+
36+
- name: Build OSGi bundle
37+
run: npm run build-server
38+
39+
- name: Build VSIX file
40+
run: vsce package
41+
42+
- name: Test extension
43+
run: npm test
44+
45+
- name: Print language server Log if job failed
46+
if: ${{ failure() }}
47+
run: find $HOME/Library/Application\ Support/Code/User/workspaceStorage/*/redhat.java/jdt_ws/.metadata/.log -print -exec cat '{}' \;;

.github/workflows/macOSUI.yml

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches: [ main ]
6+
pull_request:
7+
branches: [ main ]
8+
9+
jobs:
10+
darwinUI:
11+
name: macOS-UI
12+
runs-on: macos-latest
13+
timeout-minutes: 30
14+
steps:
15+
- uses: actions/checkout@v2
16+
17+
- name: Set up JDK 11
18+
uses: actions/setup-java@v1
19+
with:
20+
java-version: '11'
21+
22+
- name: Setup Node.js environment
23+
uses: actions/setup-node@v2
24+
with:
25+
node-version: 12
26+
27+
- name: Install Node.js modules
28+
run: npm install
29+
30+
- name: Install Gulp
31+
run: npm install -g gulp
32+
33+
- name: Install VSCE
34+
run: npm install -g vsce
35+
36+
- name: Build OSGi bundle
37+
run: npm run build-server
38+
39+
- name: Build VSIX file
40+
run: vsce package
41+
42+
- name: Test extension
43+
run: npm run test-ui
44+
45+
- name: Print language server Log if job failed
46+
if: ${{ failure() }}
47+
run: find ./test-resources/settings/User/workspaceStorage/*/redhat.java/jdt_ws/.metadata/.log -print -exec cat '{}' \;;

0 commit comments

Comments
 (0)