Skip to content

Commit

Permalink
update ci.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
ssddOnTop committed Nov 22, 2024
1 parent 055f004 commit 2a63d1c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,12 @@ name: Build and Test
env:
RUSTFLAGS: -Dwarnings
on:
pull_request:
pull_request_target:
types:
- opened
- synchronize
- reopened
- labeled
branches:
- main
push:
Expand Down
5 changes: 3 additions & 2 deletions tests/ci.rs
Original file line number Diff line number Diff line change
Expand Up @@ -47,11 +47,12 @@ fn generate() {

let event = Event::default()
.push(Push::default().add_branch("main"))
.pull_request(
PullRequest::default()
.pull_request_target(
PullRequestTarget::default()
.add_type(PullRequestType::Opened)
.add_type(PullRequestType::Synchronize)
.add_type(PullRequestType::Reopened)
.add_type(PullRequestType::Labeled)
.add_branch("main"),
);

Expand Down

0 comments on commit 2a63d1c

Please sign in to comment.