Skip to content

Commit

Permalink
chore(cicd): exclude prs with title Automated version bump
Browse files Browse the repository at this point in the history
  • Loading branch information
S-Coyle committed Jun 9, 2021
1 parent cae0058 commit 6e3e299
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 7 deletions.
20 changes: 13 additions & 7 deletions .github/workflows/pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ env:

jobs:
checks:
if: "!startsWith(github.event.pull_request.title, 'Automated version bump')"
name: Rustfmt & Clippy
runs-on: ubuntu-latest
steps:
Expand Down Expand Up @@ -48,6 +49,7 @@ jobs:
run: ./scripts/clippy

check_pr_size:
if: "!startsWith(github.event.pull_request.title, 'Automated version bump')"
name: Check PR size doesn't break set limit
runs-on: ubuntu-latest
steps:
Expand All @@ -59,7 +61,7 @@ jobs:
max_lines_changed: 200

geiger:
if: ${{ github.repository_owner == 'maidsafe' }}
if: "!startsWith(github.event.pull_request.title, 'Automated version bump')"
name: Cargo geiger
runs-on: ubuntu-latest
steps:
Expand Down Expand Up @@ -89,6 +91,7 @@ jobs:
run: cargo geiger --all-features --all-targets --all-dependencies

coverage:
if: "!startsWith(github.event.pull_request.title, 'Automated version bump')"
name: Code coverage check
runs-on: ubuntu-latest
steps:
Expand Down Expand Up @@ -128,24 +131,25 @@ jobs:
parallel-finished: true

cargo-udeps:
if: "!startsWith(github.event.pull_request.title, 'Automated version bump')"
name: Unused dependency check
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
# Install Rust and required components
- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: nightly
override: true

# Install and run cargo udeps to find unused cargo dependencies
- name: cargo-udeps unused dependency check
run: |
cargo install cargo-udeps --locked
cargo +nightly udeps --all-targets
- name: Run cargo-udeps
uses: aig787/cargo-udeps-action@v1
with:
version: 'latest'
args: '--all-targets'

cargo-deny:
if: "!startsWith(github.event.pull_request.title, 'Automated version bump')"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
Expand All @@ -157,6 +161,7 @@ jobs:
- uses: EmbarkStudios/cargo-deny-action@v1

test:
if: "!startsWith(github.event.pull_request.title, 'Automated version bump')"
name: Test
runs-on: ${{ matrix.os }}
strategy:
Expand Down Expand Up @@ -187,6 +192,7 @@ jobs:

# Test publish using --dry-run.
test-publish:
if: "!startsWith(github.event.pull_request.title, 'Automated version bump')"
name: Test Publish
runs-on: ubuntu-latest
steps:
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/security_audit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ on:
- cron: '0 0 * * *'
jobs:
audit:
if: github.repository_owner == 'maidsafe'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
Expand Down

0 comments on commit 6e3e299

Please sign in to comment.