Skip to content

Commit

Permalink
ci: run pr checks only on prs
Browse files Browse the repository at this point in the history
  • Loading branch information
hoodie committed Sep 10, 2024
1 parent beade40 commit c1fa24c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 11 deletions.
10 changes: 1 addition & 9 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,14 +1,7 @@
name: Continuous Integration
on:
push:
branches:
- main
pull_request:
on: [push: { branches: [ main ]}, pull_request ]

jobs:
pr_check:
name: Pull Request Check
uses: ./.github/workflows/pull-request.yml

semver:
name: cargo-semver-checks
Expand Down Expand Up @@ -95,7 +88,6 @@ jobs:
- name: clippy (default features)
run: cargo clippy -- -D warnings


macos:
name: macos
needs: pr_check
Expand Down
3 changes: 1 addition & 2 deletions .github/workflows/pull-request.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
name: Pull request
# This workflow is triggered on pushes to the repository.
on: [ pull_request, workflow_call, workflow_dispatch ]
on: [ pull_request ]

jobs:
check:
Expand Down

0 comments on commit c1fa24c

Please sign in to comment.