Skip to content

Commit a67d1e1

Browse files
authored
Update lint and tests workflow for draft PRs
Added conditions to run jobs only for non-draft pull requests. Signed-off-by: Antoine du Hamel <[email protected]>
1 parent 4b372c1 commit a67d1e1

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

.github/workflows/lint-and-tests.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ on:
1818
pull_request:
1919
branches:
2020
- main
21+
types: [opened, synchronize, reopened, ready_for_review]
2122
merge_group:
2223

2324
# The permissions specified below apply to workflows triggered by `merge_group`, `push`, and `pull_request` events that originate from the same repository (non-fork).
@@ -39,6 +40,7 @@ env:
3940
jobs:
4041
lint:
4142
name: Quality checks
43+
if: github.event.pull_request.draft == false
4244
runs-on: ubuntu-latest
4345

4446
steps:
@@ -96,6 +98,7 @@ jobs:
9698

9799
tests:
98100
name: Tests
101+
if: github.event.pull_request.draft == false
99102
runs-on: ubuntu-latest
100103

101104
steps:

0 commit comments

Comments
 (0)