Skip to content
This repository has been archived by the owner on Jun 25, 2021. It is now read-only.

Commit

Permalink
Browse files Browse the repository at this point in the history
Merge c925954 into d8b1b3f
  • Loading branch information
S-Coyle committed Jun 9, 2021
2 parents d8b1b3f + c925954 commit 005ff15
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 6 deletions.
18 changes: 12 additions & 6 deletions .github/workflows/pr.yml
Expand Up @@ -16,6 +16,7 @@ env:

jobs:
checks:
if: "!startsWith(github.event.pull_request.title, 'Automated version bump')"
name: Clippy & fmt
runs-on: ubuntu-latest
steps:
Expand Down Expand Up @@ -47,6 +48,7 @@ jobs:
run: cargo clippy --all-targets --all-features

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 @@ -58,6 +60,7 @@ jobs:
max_lines_changed: 200

coverage:
if: "!startsWith(github.event.pull_request.title, 'Automated version bump')"
name: Code coverage check
runs-on: ubuntu-latest
steps:
Expand Down Expand Up @@ -97,24 +100,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 @@ -126,6 +130,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 @@ -156,6 +161,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
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 005ff15

Please sign in to comment.