diff --git a/.github/actions/cache/action.yml b/.github/actions/cache/action.yml index 39edb3ad1f..84f78796dc 100644 --- a/.github/actions/cache/action.yml +++ b/.github/actions/cache/action.yml @@ -22,3 +22,9 @@ runs: with: path: '**/node_modules' key: ${{ runner.os }}-modules-${{ hashFiles('yarn.lock') }} + + - name: Restore maven dependencies. + uses: actions/cache@v2 + with: + path: '~/.m2/repository' + key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }} diff --git a/.github/workflows/check.yml b/.github/workflows/check.yml index edf70c449e..7378c6beca 100644 --- a/.github/workflows/check.yml +++ b/.github/workflows/check.yml @@ -62,9 +62,24 @@ jobs: - name: Lint run: yarn lint + client_java: + runs-on: ubuntu-20.04 + needs: [setup, specs] + steps: + - uses: actions/checkout@v2 + + - name: Restore cache + uses: ./.github/actions/cache + + - name: Generate search client + run: yarn generate java search + + - name: Build search client + run: yarn client:build-java + cts: runs-on: ubuntu-20.04 - needs: [setup, specs, client_javascript] + needs: [setup, specs, client_javascript, client_java] steps: - uses: actions/checkout@v2