Skip to content

Commit

Permalink
debug
Browse files Browse the repository at this point in the history
  • Loading branch information
shortcuts committed Jan 17, 2022
1 parent 5f38087 commit 6ebff90
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 7 deletions.
12 changes: 8 additions & 4 deletions .github/actions/cache/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,11 @@ description: Restore cached dependencies.
inputs:
job:
description: The job that requires this composite
required: true
required: false
default: cts
language:
description: The language to retrieve dependencies
required: false
spec:
description: The spec name to restore
required: false
Expand All @@ -15,7 +19,7 @@ runs:
steps:
# restore specs
- name: Restore built ${{ inputs.spec }} spec
if: ${{ inputs.job == 'client' || inputs.job == 'java' }}
if: ${{ inputs.job == 'client' }}
uses: actions/cache@v2
with:
path: /home/runner/work/api-clients-automation/api-clients-automation/specs/dist/${{ inputs.spec }}.yml
Expand Down Expand Up @@ -96,13 +100,13 @@ runs:

# setup maven
- name: Restore Maven
if: ${{ inputs.job == 'java' }}
if: ${{ inputs.language == 'java' }}
uses: actions/cache@v2
with:
path: ~/.m2/repository
key: setup-java-${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}

- name: Install Maven dependencies
if: ${{ inputs.job == 'java' }}
if: ${{ inputs.language == 'java' }}
shell: bash
run: mvn clean install -f clients/algoliasearch-client-java-2/pom.xml
11 changes: 8 additions & 3 deletions .github/workflows/check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,9 @@ jobs:
if: steps.cache.outputs.cache-hit != 'true'
run: yarn build:clients javascript ${{ matrix.client.name }}

- name: Debug
run: ls specs/dist

client_java:
runs-on: ubuntu-20.04
needs:
Expand All @@ -106,9 +109,13 @@ jobs:
- name: Restore cache
uses: ./.github/actions/cache
with:
job: java
job: client
language: java
spec: ${{ matrix.client.name }}

- name: Debug
run: ls specs/dist

- name: Cache ${{ matrix.client.name }} client
id: cache
uses: actions/cache@v2
Expand Down Expand Up @@ -136,8 +143,6 @@ jobs:
- name: Restore cache
id: restore
uses: ./.github/actions/cache
with:
job: cts

- name: Generate CTS
run: yarn cts:generate
Expand Down

0 comments on commit 6ebff90

Please sign in to comment.