Skip to content

Commit

Permalink
refactor: add separate ci jobs for format, lint and tests
Browse files Browse the repository at this point in the history
  • Loading branch information
prakharmathur82 committed Aug 24, 2023
1 parent 9a60b5d commit fe7f807
Showing 1 changed file with 27 additions and 1 deletion.
28 changes: 27 additions & 1 deletion .github/workflows/test-js-client.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ on:
paths:
- "clients/js/**"
jobs:
test-js-client:
format:
runs-on: ubuntu-latest
strategy:
matrix:
Expand All @@ -23,9 +23,35 @@ jobs:
- name: Check formatting
run: npm run format
working-directory: clients/js
lint:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: ['20']
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node-version }}
- name: Install dependencies
run: npm ci
working-directory: clients/js
- name: Check linting
run: npm run lint
working-directory: clients/js
test-js-client:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: ['20']
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node-version }}
- name: Install dependencies
run: npm ci
working-directory: clients/js
- name: Test
run: npm test
working-directory: clients/js

0 comments on commit fe7f807

Please sign in to comment.