-
Notifications
You must be signed in to change notification settings - Fork 75
41 lines (41 loc) · 1.06 KB
/
graalvm.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
name: GraalVM CI
on:
push:
branches:
- develop
pull_request:
branches:
- develop
jobs:
build:
name: ${{ matrix.version }} on ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
version: ['23.0.1']
os: [macos-latest, windows-latest, ubuntu-latest]
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Cache JVM
id: cache-java
uses: actions/cache@v3
with:
path: |
${{ runner.temp }}/java_package.tar.gz
~/.m2/repository
key: ${{ runner.os }}-java-${{ hashFiles('**/pom.xml') }}
restore-keys: |
${{ runner.os }}-java-
- name: Setup GraalVM
uses: graalvm/setup-graalvm@v1
with:
version: ${{ matrix.version }}
java-version: '17'
components: 'js'
- name: Run tests (UNIX)
run: ./mvnw clean verify
if: runner.os != 'Windows'
- name: Run tests (Windows)
run: .\mvnw.cmd clean verify
if: runner.os == 'Windows'