Skip to content

Commit cf54f96

Browse files
authored
ci: Always run on main (#416)
* ci: Always run on main Make sure caches are saved and reusable, instead of having to create new cache for every PR * Run nightly for PR and merge_queue
1 parent 2aa1b5f commit cf54f96

File tree

6 files changed

+17
-0
lines changed

6 files changed

+17
-0
lines changed

.github/workflows/base.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@ jobs:
1616
- run: cargo --locked test --workspace --doc --all-features
1717

1818
on:
19+
push:
20+
branches: [main]
1921
merge_group:
2022
types: [checks_requested]
2123
pull_request:

.github/workflows/deny.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,8 @@ jobs:
2626
command: check bans licenses sources
2727

2828
on:
29+
push:
30+
branches: [main]
2931
merge_group:
3032
types: [checks_requested]
3133
pull_request:

.github/workflows/docs.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@ jobs:
1717
- run: cargo doc --all-features --no-deps
1818

1919
on:
20+
push:
21+
branches: [main]
2022
merge_group:
2123
types: [checks_requested]
2224
pull_request:

.github/workflows/exhaustive.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -122,6 +122,8 @@ jobs:
122122
- run: exit 0
123123

124124
on:
125+
push:
126+
branches: [main]
125127
merge_group:
126128
types: [checks_requested]
127129
pull_request:

.github/workflows/lint.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,8 @@ jobs:
2323
- run: cargo --locked clippy --no-deps --all --all-targets --all-features -- -D warnings
2424

2525
on:
26+
push:
27+
branches: [main]
2628
merge_group:
2729
types: [checks_requested]
2830
pull_request:

.github/workflows/nightly.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,5 +40,12 @@ jobs:
4040
- run: cargo --locked clippy --no-deps --all --all-targets --all-features -- -D warnings
4141

4242
on:
43+
merge_group:
44+
types: [checks_requested]
45+
pull_request:
46+
branches: [main]
47+
types: [opened, synchronize, reopened, ready_for_review]
48+
push:
49+
branches: [main]
4350
schedule:
4451
- cron: '0 2 * * *'

0 commit comments

Comments
 (0)