Skip to content

Commit

Permalink
chore(CI): cache the composer generator deps
Browse files Browse the repository at this point in the history
  • Loading branch information
bencromwell committed Aug 29, 2024
1 parent c43a46b commit db68916
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,13 @@ jobs:
steps:
- uses: actions/checkout@v4

- name: Cache generator dependencies
uses: actions/cache@v4
with:
path: generator/vendor
key: ${{ runner.os }}-generator-vendor-${{ hashFiles('**/composer.lock') }}
restore-keys: ${{ runner.os }}-generator-vendor-

- name: Generate our client
run: make build

Expand All @@ -34,12 +41,11 @@ jobs:
- uses: actions/checkout@v4

- name: Cache node modules
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: node_modules
key: ${{ runner.os }}-node_modules-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-node_modules-
restore-keys: ${{ runner.os }}-node_modules-

- name: Install openapi-changes
run: npm install
Expand Down

0 comments on commit db68916

Please sign in to comment.