Skip to content

Commit

Permalink
ci(dev-cli,loader,sdk): use action to cache deps for faster ci runs
Browse files Browse the repository at this point in the history
  • Loading branch information
TillaTheHun0 committed Oct 4, 2023
1 parent 3ac5d9e commit d4a5ffd
Show file tree
Hide file tree
Showing 3 changed files with 35 additions and 7 deletions.
6 changes: 5 additions & 1 deletion .github/workflows/dev-cli.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,10 +59,14 @@ jobs:
with:
node-version: 18

- name: 📥 Download deps
uses: bahmutov/npm-install@v1
with:
working-directory: dev-cli/container/src/publish

- name: ⚡ Run Tests
working-directory: dev-cli/container/src/publish
run: |
npm i
npm test
env:
CI: true
Expand Down
18 changes: 15 additions & 3 deletions .github/workflows/loader.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,14 @@ jobs:
with:
node-version: 18

- name: 📥 Download deps
uses: bahmutov/npm-install@v1
with:
working-directory: loader

- name: ⚡ Run Tests
working-directory: loader
run: |
npm i
npm test
env:
CI: true
Expand All @@ -57,10 +61,14 @@ jobs:
with:
node-version: 18

- name: 📥 Download deps
uses: bahmutov/npm-install@v1
with:
working-directory: loader

- name: ⚡ Run Tests
working-directory: loader
run: |
npm i
npm run test:integration
env:
CI: true
Expand Down Expand Up @@ -109,11 +117,15 @@ jobs:
run: |
git push
git push --tags
- name: 📥 Download deps
uses: bahmutov/npm-install@v1
with:
working-directory: loader

- name: 🦠 Publish to NPM
working-directory: loader
run: |
npm i
npm run build
npm publish
env:
Expand Down
18 changes: 15 additions & 3 deletions .github/workflows/sdk.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,14 @@ jobs:
with:
node-version: 18

- name: 📥 Download deps
uses: bahmutov/npm-install@v1
with:
working-directory: sdk

- name: ⚡ Run Tests
working-directory: sdk
run: |
npm i
npm test
env:
CI: true
Expand All @@ -57,10 +61,14 @@ jobs:
with:
node-version: 18

- name: 📥 Download deps
uses: bahmutov/npm-install@v1
with:
working-directory: sdk

- name: ⚡ Run Tests
working-directory: sdk
run: |
npm i
npm run test:integration
env:
CI: true
Expand Down Expand Up @@ -109,11 +117,15 @@ jobs:
run: |
git push
git push --tags
- name: 📥 Download deps
uses: bahmutov/npm-install@v1
with:
working-directory: sdk

- name: 🦠 Publish to NPM
working-directory: sdk
run: |
npm i
npm run build
npm publish
env:
Expand Down

0 comments on commit d4a5ffd

Please sign in to comment.