1- name : ' build-test '
1+ name : Continuous Integration
22
33on :
44 push :
88 paths-ignore :
99 - ' **.md'
1010 workflow_dispatch :
11+
1112permissions :
1213 contents : read
1314
1415jobs :
15- build : # make sure build/ci work properly
16+ test-typescript :
17+ name : TypeScript Tests
1618 runs-on : ubuntu-latest
1719 steps :
18- - uses : actions/checkout@v4
19- - run : |
20- npm install
21- - run : |
22- npm run all
23- test :
20+ - name : Checkout
21+ uses : actions/checkout@v4
22+ - name : Setup Node.js
23+ uses : actions/setup-node@v4
24+ with :
25+ node-version-file : .node-version
26+ cache : npm
27+ - name : Install Dependencies
28+ run : npm clean-install
29+ - name : Check Format
30+ run : npm run format:check
31+ - name : Lint
32+ run : npm run lint
33+ - name : Test
34+ run : npm run test
35+
36+ test-action :
2437 name : GraalVM
2538 runs-on : ${{ matrix.os }}
2639 strategy :
95108 java --version
96109 native-image --version
97110 if : runner.os == 'Windows'
98- test-ce : # make sure the action works on a clean machine without building
99- needs : test
111+
112+ test-action-ce : # make sure the action works on a clean machine without building
113+ needs : test-action
100114 name : CE ${{ matrix.version }} + JDK${{ matrix.java-version }} on ${{ matrix.os }}
101115 runs-on : ${{ matrix.os }}
102116 strategy :
@@ -164,8 +178,9 @@ jobs:
164178 native-image --version
165179 gu.cmd remove native-image
166180 if : runner.os == 'Windows'
167- test-ee :
168- needs : test
181+
182+ test-action-ee :
183+ needs : test-action
169184 name : EE ${{ matrix.version }} + JDK${{ matrix.java-version }} on ${{ matrix.os }}
170185 if : github.event_name != 'pull_request'
171186 runs-on : ${{ matrix.os }}
@@ -212,8 +227,9 @@ jobs:
212227 native-image --version
213228 gu.cmd remove native-image
214229 if : runner.os == 'Windows'
215- test-mandrel :
216- needs : test
230+
231+ test-action-mandrel :
232+ needs : test-action
217233 name : ${{ matrix.version }} + JDK${{ matrix.java-version }} on ${{ matrix.os }}
218234 runs-on : ${{ matrix.os }}
219235 strategy :
@@ -256,8 +272,9 @@ jobs:
256272 java --version
257273 native-image --version
258274 if : runner.os == 'Windows'
259- test-liberica :
260- needs : test
275+
276+ test-action-liberica :
277+ needs : test-action
261278 name : Liberica (${{ matrix.java-version }}, '${{ matrix.java-package }}', ${{ matrix.os }})
262279 runs-on : ${{ matrix.os }}
263280 strategy :
@@ -298,7 +315,8 @@ jobs:
298315 exit 24
299316 }
300317 if : runner.os == 'Windows'
301- test-native-image-windows :
318+
319+ test-action-native-image-windows :
302320 name : native-image on windows-latest
303321 runs-on : windows-latest
304322 permissions :
@@ -320,7 +338,8 @@ jobs:
320338 javac HelloWorld.java
321339 native-image HelloWorld
322340 ./helloworld
323- test-native-image-windows-msvc :
341+
342+ test-action-native-image-windows-msvc :
324343 name : native-image on windows-2022
325344 runs-on : windows-2022
326345 permissions :
@@ -342,7 +361,8 @@ jobs:
342361 javac HelloWorld.java
343362 native-image HelloWorld
344363 ./helloworld
345- test-native-image-musl :
364+
365+ test-action-native-image-musl :
346366 name : native-image-musl on ubuntu-latest
347367 runs-on : ubuntu-latest
348368 permissions :
@@ -365,7 +385,8 @@ jobs:
365385 javac HelloWorld.java
366386 native-image --static --libc=musl HelloWorld
367387 ./helloworld
368- test-extensive :
388+
389+ test-action-extensive :
369390 name : extensive tests on ubuntu-latest
370391 runs-on : ubuntu-latest
371392 permissions :
@@ -420,7 +441,8 @@ jobs:
420441 # popd > /dev/null
421442 - name : Remove components
422443 run : gu remove espresso llvm-toolchain nodejs python ruby wasm
423- test-sbom :
444+
445+ test-action-sbom :
424446 name : test 'native-image-enable-sbom' option
425447 runs-on : ${{ matrix.os }}
426448 permissions :
0 commit comments