Skip to content

Commit

Permalink
chore: updates workflow to support checks when dev deps are changed
Browse files Browse the repository at this point in the history
  • Loading branch information
stalniy committed Jan 5, 2025
1 parent 7cc84dd commit 4fbd87e
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,9 +59,19 @@ jobs:
pnpm run -r --filter '[${{ steps.base-commit.outputs.sha }}]...' build
fi
- name: lint
run: pnpm run -r --filter '[${{ steps.base-commit.outputs.sha }}]' lint
run: |
if [[ "${{ github.event_name }}" != "pull_request" || $(git diff --name-only HEAD^1 HEAD | grep casl-) = "" ]]; then
pnpm run -r lint
else
pnpm run -r --filter '[${{ steps.base-commit.outputs.sha }}]' lint
fi
- name: test
run: pnpm run -r --filter '...[${{ steps.base-commit.outputs.sha }}]' test --coverage
run: |
if [[ "${{ github.event_name }}" != "pull_request" || $(git diff --name-only HEAD^1 HEAD | grep casl-) = "" ]]; then
pnpm run -r test --coverage
else
pnpm run -r --filter '...[${{ steps.base-commit.outputs.sha }}]' test --coverage
fi
- name: submit coverage
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
Expand Down

0 comments on commit 4fbd87e

Please sign in to comment.