Skip to content

Commit

Permalink
chore: add caching & npm registry to github action
Browse files Browse the repository at this point in the history
  • Loading branch information
openrijal committed Aug 14, 2023
1 parent 049d986 commit 0cde30f
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions .github/workflows/test-js-ts-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@ on: [pull_request]
jobs:
build:
runs-on: ubuntu-latest
defaults:
run:
working-directory: ./clients/javascript_client/
strategy:
matrix:
node-version: [14.x, 16.x, 18.x, 20.x]
Expand All @@ -18,17 +21,16 @@ jobs:
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}

- name: Install all packages
run: |
cd clients/javascript_client/
rm -rfv node_modules
npm ci
- name: Run Formatting Checks
run: |
cd clients/javascript_client/
npm run format
- name: Run Lint
run: |
cd clients/javascript_client/
npm run lint
- name: Run Tests
run: |
Expand Down

0 comments on commit 0cde30f

Please sign in to comment.