-
Notifications
You must be signed in to change notification settings - Fork 100
51 lines (48 loc) · 1.36 KB
/
ci.yaml
File metadata and controls
51 lines (48 loc) · 1.36 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
name: Continuous Integration
on:
- push
- pull_request
jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Fix package-lock.json
run: rm package-lock.json
- name: Install dependencies
run: npm i --also=dev
- name: Run TypeScript compiler (under webpack)
run: npm run compile
- name: Run ESLint
run: npm run eslint
build-test-native-image:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
repository: 'eclipse/lemminx'
- uses: graalvm/setup-graalvm@557ffcf459751b4d92319ee255bf3bec9b73964c #v1.2.5
with:
distribution: ${{env.GRAALVM_DISTRO}}
java-version: ${{env.GRAALVM_JAVA}}
- run: mv org.eclipse.lemminx/target/lemminx-* lemminx-linux
- uses: actions/upload-artifact@v4
with:
name: lemminx-linux
path: lemminx-linux
if-no-files-found: error
smoke-test:
runs-on: ubuntu-latest
needs: build-test-native-image
steps:
- uses: actions/checkout@v4
- uses: actions/download-artifact@v4
with:
name: lemminx-linux
path: server
- name: Make lemminx binary executable
run: chmod u+x ./server/lemminx-linux
- name: Install dependencies
run: npm i --also=dev
- name: Run smoke test suite
run: xvfb-run npm test