Skip to content

cloudbees workflow

cloudbees workflow #74

Workflow file for this run

# This implements the workaround described in https://docs.github.com/en/repositories/configuring-branches-and-merges-in-your-repository/defining-the-mergeability-of-pull-requests/troubleshooting-required-status-checks#handling-skipped-but-required-checks
# The rust linting checks are required but due to path filtering
# the jobs are not created at all so we need to manually recreate them
---
name: Linting
on:
push:
pull_request:
paths-ignore: # This should match https://github.com/pyrsia/pyrsia/blob/main/.github/workflows/rust-lint.yml#L4
- .github/workflows/lint.yml
- .github/workflows/.cargo/audit.toml
- '**/*.rs'
- '**/Cargo.toml'
- Cargo.lock
- 'installers/**'
- '**/*.md'
- '**/*.mdx'
jobs:
security-audit:
runs-on: ubuntu-20.04
steps:
- run: echo "Skipping security-audit since PR has files from ignore list"
rustfmt:
runs-on: ubuntu-20.04
steps:
- run: echo "Skipping rustfmt since PR has files from ignore list"
clippy:
runs-on: ubuntu-20.04
steps:
- run: echo "Skipping clippy since PR has files from ignore list"
license-header:
runs-on: ubuntu-20.04
steps:
- run: echo "Skipping license-header since PR has files from ignore list"
inclusive-lint:
runs-on: ubuntu-20.04
steps:
- run: echo "Skipping inclusive-lint since PR has files from ignore list"
markdown-docs:
runs-on: ubuntu-20.04
steps:
- run: echo "Skipping markdown-docs since PR has files from ignore list"