Skip to content

Commit a4e750f

Browse files
authored
chore(ci): java (#38)
1 parent 5f4fc12 commit a4e750f

File tree

2 files changed

+22
-1
lines changed

2 files changed

+22
-1
lines changed

.github/actions/cache/action.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,3 +22,9 @@ runs:
2222
with:
2323
path: '**/node_modules'
2424
key: ${{ runner.os }}-modules-${{ hashFiles('yarn.lock') }}
25+
26+
- name: Restore maven dependencies.
27+
uses: actions/cache@v2
28+
with:
29+
path: '~/.m2/repository'
30+
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}

.github/workflows/check.yml

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,9 +62,24 @@ jobs:
6262
- name: Lint
6363
run: yarn lint
6464

65+
client_java:
66+
runs-on: ubuntu-20.04
67+
needs: [setup, specs]
68+
steps:
69+
- uses: actions/checkout@v2
70+
71+
- name: Restore cache
72+
uses: ./.github/actions/cache
73+
74+
- name: Generate search client
75+
run: yarn generate java search
76+
77+
- name: Build search client
78+
run: yarn client:build-java
79+
6580
cts:
6681
runs-on: ubuntu-20.04
67-
needs: [setup, specs, client_javascript]
82+
needs: [setup, specs, client_javascript, client_java]
6883
steps:
6984
- uses: actions/checkout@v2
7085

0 commit comments

Comments
 (0)