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
on: [push]
# push:
# paths:
# - 'examples/*.rs'
# - 'libraries/**/*.rs'
# - 'src/**/*.rs'
# - 'patches/**'
# - '**/Cargo.toml'
# - '.cargo/config'
# - '!third_party/**'
on:
push:
paths:
- 'examples/*.rs'
- 'libraries/**/*.rs'
- 'src/**/*.rs'
- 'patches/**'
- '**/Cargo.toml'
- '.cargo/config'
- '!third_party/**'
pull_request:
types: [opened, synchronize, reopened]
jobs:
cargo_check:

View File

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

View File

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

View File

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