-
Notifications
You must be signed in to change notification settings - Fork 1
42 lines (36 loc) · 921 Bytes
/
main.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
42
name: Java-Golang
on:
push:
branches:
- main # Set a branch to deploy
pull_request:
jobs:
test:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
java: [8, 17-ea]
go: ['1.16', '1.17', '1.19']
# Run all tests even if one fails
fail-fast: false
name: Test with JDK ${{ matrix.java }}, Go ${{ matrix.go }}, ${{ matrix.os }}
steps:
- name: Checkout
uses: actions/checkout@v3
with:
submodules: true
fetch-depth: 0
- name: Setup Go
uses: actions/[email protected]
with:
go-version: ${{ matrix.go }}
- name: Setup Java
uses: actions/setup-java@v3
with:
distribution: 'temurin'
java-version: ${{ matrix.java }}
cache: 'maven'
- name: Test
run: |
make test