Skip to content

Commit

Permalink
ci: trigger on PR (#61)
Browse files Browse the repository at this point in the history
* ci: trigger ci on PR

* ci: trigger only on PR

* ci: fix lint staged diff arguments

* ci: run on PR against all branches
  • Loading branch information
elias-pap authored Apr 21, 2024
1 parent 3541c73 commit 1d34c32
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: CI
on:
push:
pull_request:
branches:
- "**"
jobs:
Expand All @@ -25,7 +25,7 @@ jobs:
if: steps.cache.outputs.cache-hit != 'true'
run: npm ci
- name: Run pre-commit hooks
run: npx lint-staged --diff=origin/${{ github.event.repository.default_branch }}...origin/${{ github.ref_name }}
run: npx lint-staged --diff=origin/${{ github.base_ref }}...origin/${{ github.head_ref }}
test:
needs: pre-commit
strategy:
Expand Down

0 comments on commit 1d34c32

Please sign in to comment.