diff --git a/.github/workflows/test_suite.yml b/.github/workflows/test_suite.yml index dc827af..050e18e 100644 --- a/.github/workflows/test_suite.yml +++ b/.github/workflows/test_suite.yml @@ -1,7 +1,15 @@ name: "Test Suite" on: push: + branches-ignore: + - 'dependabot/**' #avoid duplicates: only run the PR, not the push + - 'renovate/**' #avoid duplicates: only run the PR, not the push + - 'gh-pages' #github pages do not trigger all tests + tags-ignore: + - 'v*' #avoid rerun existing commit on release pull_request: + branches: + - 'main' concurrency: group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} @@ -9,6 +17,7 @@ concurrency: jobs: test: + if: (github.event_name != 'pull_request' && ! github.event.pull_request.head.repo.fork) || (github.event_name == 'pull_request' && (github.event.pull_request.head.repo.fork || startsWith(github.head_ref, 'dependabot/') || startsWith(github.head_ref, 'renovate/'))) name: cargo test runs-on: ubuntu-latest steps: @@ -40,6 +49,7 @@ jobs: # Check formatting with rustfmt formatting: + if: (github.event_name != 'pull_request' && ! github.event.pull_request.head.repo.fork) || (github.event_name == 'pull_request' && (github.event.pull_request.head.repo.fork || startsWith(github.head_ref, 'dependabot/') || startsWith(github.head_ref, 'renovate/'))) name: cargo fmt runs-on: ubuntu-latest steps: @@ -52,6 +62,7 @@ jobs: uses: actions-rust-lang/rustfmt@v1 lint: + if: (github.event_name != 'pull_request' && ! github.event.pull_request.head.repo.fork) || (github.event_name == 'pull_request' && (github.event.pull_request.head.repo.fork || startsWith(github.head_ref, 'dependabot/') || startsWith(github.head_ref, 'renovate/'))) name: cargo clippy runs-on: ubuntu-latest steps: