Skip to content

Commit 610d89f

Browse files
Java/add ci (#11)
* Add a workflow for java * Remove comment in workflow files * Fix java workflow * Fix os for java workflow matrix * Add mvn test to java workflow * Add more version of java in CI * Fix java workflow * Remove java 17 from java builds
1 parent 0875a40 commit 610d89f

File tree

4 files changed

+46
-9
lines changed

4 files changed

+46
-9
lines changed

.github/workflows/go.yml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
# This workflow will do a clean install of node dependencies, build the source code and run tests across different versions of node
2-
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions
3-
41
name: test-go
52

63
on:

.github/workflows/java.yml

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
name: test-java
2+
3+
on:
4+
push:
5+
pull_request:
6+
types:
7+
- merged
8+
branches:
9+
- master
10+
11+
jobs:
12+
test:
13+
runs-on: ${{ matrix.os }}
14+
strategy:
15+
fail-fast: false
16+
matrix:
17+
os:
18+
- ubuntu-latest
19+
java: ['11', '16']
20+
include:
21+
- os: windows-latest
22+
java: '16'
23+
- os: macos-latest
24+
java: '16'
25+
26+
steps:
27+
- uses: actions/checkout@v2
28+
- name: Cache local Maven repository
29+
uses: actions/cache@v2
30+
with:
31+
path: ~/.m2/repository
32+
key: build-${{ matrix.os }}-maven-${{ hashFiles('**/pom.xml') }}
33+
restore-keys: |
34+
build-${{ matrix.os }}-maven-
35+
- uses: AdoptOpenJDK/install-jdk@v1
36+
with:
37+
version: ${{ matrix.java }}
38+
- name: mvn install
39+
working-directory: ./java
40+
run: mvn install
41+
- name: mvn test
42+
working-directory: ./java
43+
run: mvn test
44+
- name: check jar
45+
working-directory: ./java
46+
run: ./scripts/check-jar.sh

.github/workflows/javascript.yml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
# This workflow will do a clean install of node dependencies, build the source code and run tests across different versions of node
2-
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions
3-
41
name: test-javascript
52

63
on:

.github/workflows/ruby.yml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
# This workflow will do a clean install of node dependencies, build the source code and run tests across different versions of node
2-
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions
3-
41
name: test-ruby
52

63
on:

0 commit comments

Comments
 (0)