Skip to content

Commit 18b23d6

Browse files
committed
[WIP] run the smoke tests in CI with the binary
Signed-off-by: David Thompson <davthomp@redhat.com>
1 parent f4275a9 commit 18b23d6

2 files changed

Lines changed: 51 additions & 17 deletions

File tree

.github/workflows/ci.yaml

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
name: Continuous Integration
2+
on:
3+
- push
4+
- pull_request
5+
jobs:
6+
7+
lint:
8+
runs-on: ubuntu-latest
9+
steps:
10+
- uses: actions/checkout@v2
11+
- name: Fix package-lock.json
12+
run: rm package-lock.json
13+
- name: Install dependencies
14+
run: npm i --also=dev
15+
- name: Run TypeScript compiler (under webpack)
16+
run: npm run compile
17+
- name: Run ESLint
18+
run: npm run eslint
19+
20+
build-test-native-image:
21+
runs-on: ubuntu-latest
22+
steps:
23+
- uses: actions/checkout@v4
24+
with:
25+
repository: 'eclipse/lemminx'
26+
- uses: graalvm/setup-graalvm@557ffcf459751b4d92319ee255bf3bec9b73964c #v1.2.5
27+
with:
28+
distribution: graalvm-community
29+
java-version: 17
30+
- run: mv org.eclipse.lemminx/target/lemminx-* lemminx-linux
31+
- uses: actions/upload-artifact@v4
32+
with:
33+
name: lemminx-linux
34+
path: lemminx-linux
35+
if-no-files-found: error
36+
37+
smoke-test:
38+
runs-on: ubuntu-latest
39+
needs: build-test-native-image
40+
steps:
41+
- uses: actions/checkout@v4
42+
- uses: actions/download-artifact@v4
43+
with:
44+
name: lemminx-linux
45+
path: server
46+
- name: Make lemminx binary executable
47+
run: chmod u+x ./server/lemminx-linux
48+
- name: Install dependencies
49+
run: npm i --also=dev
50+
- name: Run smoke test suite
51+
run: xvfb-run npm test

.github/workflows/lint.yaml

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

0 commit comments

Comments
 (0)