forked from jfrog/ide-plugins-common
-
Notifications
You must be signed in to change notification settings - Fork 0
40 lines (36 loc) · 969 Bytes
/
test.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
name: Test
on: [push, pull_request]
jobs:
test:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, windows-latest, macOS-latest]
node: [14, 16.9, 16]
steps:
- uses: actions/checkout@v3
with:
submodules: true
# Install required tools
- name: Set up Java
uses: actions/setup-java@v3
with:
distribution: "temurin"
java-version: "17"
- name: Setup Gradle
uses: gradle/gradle-build-action@v2
with:
gradle-version: 7.6
- name: Setup NodeJS
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node }}
check-latest: true
# Run tests
- name: Tests on macOS, Linux
run: ./gradlew clean test
if: runner.os != 'Windows'
- name: Tests on Windows
run: ./gradlew.bat clean test
if: runner.os == 'Windows'