Skip to content

Commit

Permalink
limit to run actual test in tool repo
Browse files Browse the repository at this point in the history
  • Loading branch information
wanlwanl committed Jun 19, 2024
1 parent 55ca966 commit fbda4ba
Showing 1 changed file with 14 additions and 4 deletions.
18 changes: 14 additions & 4 deletions .github/workflows/js-sdk-release-tool-pull-request-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,18 +14,28 @@ jobs:
- name: Checkout code
uses: actions/checkout@v2

- name: Check file existence
id: check_files
uses: andstor/file-existence-action@v1
with:
files: "tools/js-sdk-release-tools/package.json"

- name: Install dependencies
if: steps.check_files.outputs.files_exists == 'true'
run: npm install
working-directory: ./tools/js-sdk-release-tools/
working-directory: tools/js-sdk-release-tools/

- name: Build TypeScript
if: steps.check_files.outputs.files_exists == 'true'
run: npm run build
working-directory: ./tools/js-sdk-release-tools/
working-directory: tools/js-sdk-release-tools/

- name: Run Unit Tests
if: steps.check_files.outputs.files_exists == 'true'
run: npm run test
working-directory: ./tools/js-sdk-release-tools/
working-directory: tools/js-sdk-release-tools/

- name: Run CI E2E Tests
if: steps.check_files.outputs.files_exists == 'true'
run: npm run test:ci
working-directory: ./tools/js-sdk-release-tools/
working-directory: tools/js-sdk-release-tools/

0 comments on commit fbda4ba

Please sign in to comment.