Also run checks on pull requests

This commit is contained in:
Jean-Michel Picod
2020-02-25 10:25:55 +01:00
parent a13f9cf8bc
commit 53964b1d61
4 changed files with 28 additions and 20 deletions

View File

@@ -1,14 +1,16 @@
name: Cargo check name: Cargo check
on: [push] on:
# push: push:
# paths: paths:
# - 'examples/*.rs' - 'examples/*.rs'
# - 'libraries/**/*.rs' - 'libraries/**/*.rs'
# - 'src/**/*.rs' - 'src/**/*.rs'
# - 'patches/**' - 'patches/**'
# - '**/Cargo.toml' - '**/Cargo.toml'
# - '.cargo/config' - '.cargo/config'
# - '!third_party/**' - '!third_party/**'
pull_request:
types: [opened, synchronize, reopened]
jobs: jobs:
cargo_check: cargo_check:

View File

@@ -1,14 +1,16 @@
name: Cargo format name: Cargo format
on: [push] on:
# push: push:
# paths: paths:
# - 'examples/*.rs' - 'examples/*.rs'
# - 'libraries/**/*.rs' - 'libraries/**/*.rs'
# - 'src/**/*.rs' - 'src/**/*.rs'
# - 'patches/**' - 'patches/**'
# - '**/Cargo.toml' - '**/Cargo.toml'
# - '.cargo/config' - '.cargo/config'
# - '!third_party/**' - '!third_party/**'
pull_request:
types: [opened, synchronize, reopened]
jobs: jobs:
cargo_format: cargo_format:

View File

@@ -5,6 +5,8 @@ on:
- '**/*.md' - '**/*.md'
- '.markdownlint.json' - '.markdownlint.json'
- '!third_party/**' - '!third_party/**'
pull_request:
types: [opened, synchronize, reopened]
jobs: jobs:
mdlint: mdlint:

View File

@@ -5,6 +5,8 @@ on:
- '**/*.py' - '**/*.py'
- '.pylintrc' - '.pylintrc'
- '!third_party/**' - '!third_party/**'
pull_request:
types: [opened, synchronize, reopened]
jobs: jobs:
pylint: pylint:
runs-on: ubuntu-latest runs-on: ubuntu-latest