Revert "chore(github): skip some heavy jobs when PR is not related (#6667)" (#7035)

This commit is contained in:
Alexey Shekhirin
2024-03-07 17:08:51 +00:00
committed by GitHub
parent 1cd05b09ef
commit 91c7dd04b7
6 changed files with 13 additions and 38 deletions

View File

@ -2,12 +2,9 @@ name: lint
on:
pull_request:
paths-ignore: ["etc/**"]
merge_group:
paths-ignore: ["etc/**"]
push:
branches: [main]
paths-ignore: ["etc/**"]
env:
CARGO_TERM_COLOR: always
@ -30,7 +27,8 @@ jobs:
- uses: Swatinem/rust-cache@v2
with:
cache-on-failure: true
- run: cargo clippy --bin "${{ matrix.binary }}" --workspace --features "${{ matrix.network }} asm-keccak jemalloc jemalloc-prof min-error-logs min-warn-logs min-info-logs min-debug-logs min-trace-logs"
- run:
cargo clippy --bin "${{ matrix.binary }}" --workspace --features "${{ matrix.network }} asm-keccak jemalloc jemalloc-prof min-error-logs min-warn-logs min-info-logs min-debug-logs min-trace-logs"
env:
RUSTFLAGS: -D warnings
@ -112,11 +110,21 @@ jobs:
components: rustfmt
- run: cargo fmt --all --check
grafana:
runs-on: ubuntu-latest
timeout-minutes: 30
steps:
- uses: actions/checkout@v4
- name: Check dashboard JSON with jq
uses: sergeysova/jq-action@v2
with:
cmd: jq empty etc/grafana/dashboards/overview.json
lint-success:
name: lint success
runs-on: ubuntu-latest
if: always()
needs: [clippy-binaries, clippy, crate-checks, docs, fmt]
needs: [clippy-binaries, clippy, crate-checks, docs, fmt, grafana]
timeout-minutes: 30
steps:
- name: Decide whether the needed jobs succeeded or failed