Skip to content

Commit b2a9acc

Browse files
ci: more fixes
1 parent a4e71a6 commit b2a9acc

File tree

1 file changed

+17
-2
lines changed

1 file changed

+17
-2
lines changed

.github/workflows/ci.yml

Lines changed: 17 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,30 @@
1-
name: CI
1+
name: Pre-merge Checks
22
on:
33
pull_request:
4+
types: [opened, synchronize, reopened, ready_for_review]
45

56
concurrency:
67
group: ci-${{ github.ref }}
78
cancel-in-progress: true
89

910

1011
jobs:
11-
build-with-coverage:
12+
run-ci:
13+
# runs-on: ubuntu-latest
1214
runs-on: ubuntu-latest
15+
defaults:
16+
run:
17+
shell: bash
18+
if: ${{ !github.event.pull_request.draft && github.actor != 'dependabot[bot]' && github.actor != 'dependabot-preview[bot]' }}
19+
steps:
20+
# If the condition above is not met, aka, the PR is not in draft status, then this step is skipped.
21+
# Because this step is part of the critical path, omission of this step will result in remaining CI steps not gettinge executed.
22+
# As of 8/8/2022 there is now way to enforce this beahvior in GitHub Actions CI.
23+
- run: exit 0
24+
25+
build-with-latest-hapi-release:
26+
runs-on: ubuntu-latest
27+
needs: [run-ci]
1328
permissions:
1429
contents: read
1530
id-token: write

0 commit comments

Comments
 (0)