diff --git a/.github/workflows/lest.yml b/.github/workflows/lest.yml index 26a3c66..bc8d1ef 100644 --- a/.github/workflows/lest.yml +++ b/.github/workflows/lest.yml @@ -2,9 +2,6 @@ name: Lest CI on: workflow_call: - push: - branches-ignore: - - master jobs: lint: diff --git a/.github/workflows/pull_request.yml b/.github/workflows/pull_request.yml new file mode 100644 index 0000000..ab062d3 --- /dev/null +++ b/.github/workflows/pull_request.yml @@ -0,0 +1,9 @@ +name: Pull request created or updated + +on: pull_request + +jobs: + lest: + uses: "./.github/workflows/lest.yml" + # Only run on forks to avoid duplicating the "push" workflow + if: ${{ github.event.pull_request.head.repo.fork }} diff --git a/.github/workflows/push_feature.yml b/.github/workflows/push_feature.yml new file mode 100644 index 0000000..e6bedce --- /dev/null +++ b/.github/workflows/push_feature.yml @@ -0,0 +1,10 @@ +name: Push to feature branch + +on: + push: + branches-ignore: + - master + +jobs: + lest: + uses: ./.github/workflows/lest.yml