Also run checks on pull requests
This commit is contained in:
22
.github/workflows/cargo_fmt.yml
vendored
22
.github/workflows/cargo_fmt.yml
vendored
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user