From 53964b1d61a1d855edf30b3cb62e9d0bcc9884ef Mon Sep 17 00:00:00 2001 From: Jean-Michel Picod <jmichel@google.com> Date: Tue, 25 Feb 2020 10:25:55 +0100 Subject: [PATCH] Also run checks on pull requests --- .github/workflows/cargo_check.yml | 22 ++++++++++++---------- .github/workflows/cargo_fmt.yml | 22 ++++++++++++---------- .github/workflows/mdlint.yml | 2 ++ .github/workflows/pylint.yml | 2 ++ 4 files changed, 28 insertions(+), 20 deletions(-) diff --git a/.github/workflows/cargo_check.yml b/.github/workflows/cargo_check.yml index 8638a76..e509a42 100644 --- a/.github/workflows/cargo_check.yml +++ b/.github/workflows/cargo_check.yml @@ -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: diff --git a/.github/workflows/cargo_fmt.yml b/.github/workflows/cargo_fmt.yml index f077628..177989f 100644 --- a/.github/workflows/cargo_fmt.yml +++ b/.github/workflows/cargo_fmt.yml @@ -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: diff --git a/.github/workflows/mdlint.yml b/.github/workflows/mdlint.yml index e57ce7c..1c8a4d5 100644 --- a/.github/workflows/mdlint.yml +++ b/.github/workflows/mdlint.yml @@ -5,6 +5,8 @@ on: - '**/*.md' - '.markdownlint.json' - '!third_party/**' + pull_request: + types: [opened, synchronize, reopened] jobs: mdlint: diff --git a/.github/workflows/pylint.yml b/.github/workflows/pylint.yml index 311f945..08c1f04 100644 --- a/.github/workflows/pylint.yml +++ b/.github/workflows/pylint.yml @@ -5,6 +5,8 @@ on: - '**/*.py' - '.pylintrc' - '!third_party/**' + pull_request: + types: [opened, synchronize, reopened] jobs: pylint: runs-on: ubuntu-latest -- GitLab