Skip to content

fix(request): split charge response errors by failure layer #775

fix(request): split charge response errors by failure layer

fix(request): split charge response errors by failure layer #775

Workflow file for this run

name: Lint
permissions: {}
on:
push:
branches: [main, master]
pull_request:
branches: [main, master]
merge_group:
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
cancel-in-progress: ${{ github.event_name == 'pull_request' }}
env:
CARGO_TERM_COLOR: always
CARGO_NET_GIT_FETCH_WITH_CLI: "true"
RUST_BACKTRACE: full
jobs:
clippy:
name: clippy
runs-on: ubuntu-latest
timeout-minutes: 30
permissions:
contents: read
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
persist-credentials: false
- uses: dtolnay/rust-toolchain@29eef336d9b2848a0b548edc03f92a220660cdb8 # nightly
with:
components: clippy
- uses: Swatinem/rust-cache@c19371144df3bb44fab255c43d04cbc2ab54d1c4 # v2.9.1
- name: Run clippy
run: cargo clippy --workspace --all-targets --all-features --locked
env:
RUSTFLAGS: -D warnings
fmt:
name: fmt
runs-on: ubuntu-latest
timeout-minutes: 30
permissions:
contents: read
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
persist-credentials: false
- uses: dtolnay/rust-toolchain@29eef336d9b2848a0b548edc03f92a220660cdb8 # nightly
with:
components: rustfmt
- name: Check formatting
run: cargo fmt --all -- --check
tempo-lints:
name: tempo-lints
runs-on: ubuntu-latest
timeout-minutes: 30
permissions:
contents: read
env:
TEMPO_LINTS_REF: 0dbe62767b6e15963a652f5476bc0b8ae111d6fc
TEMPO_LINTS_PNPM_VERSION: 10.28.1
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
persist-credentials: false
- name: Setup Node.js
uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0
with:
node-version: "lts/*"
- name: Run Tempo Lints
run: |
set -euo pipefail
# post-comment: false (emit annotations only; do not write to PRs from this fork-safe job)
corepack enable
corepack prepare "pnpm@${TEMPO_LINTS_PNPM_VERSION}" --activate
lints_dir="$RUNNER_TEMP/tempo-lints"
git init "$lints_dir"
git -C "$lints_dir" remote add origin https://github.com/tempoxyz/lints.git
git -C "$lints_dir" fetch --depth 1 origin "$TEMPO_LINTS_REF"
git -C "$lints_dir" checkout --detach FETCH_HEAD
pnpm --dir "$lints_dir" install --frozen-lockfile
pnpm --dir "$lints_dir" exec tsx "$lints_dir/bin/tempo-lints.ts" rust "$GITHUB_WORKSPACE" --github-action
typos:
name: typos
runs-on: ubuntu-latest
timeout-minutes: 30
permissions:
contents: read
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
persist-credentials: false
- uses: crate-ci/typos@f8a58b6b53f2279f71eb605f03a4ae4d10608f45 # v1.47.0
deny:
name: deny
runs-on: ubuntu-latest
timeout-minutes: 30
permissions:
contents: read
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
persist-credentials: false
- uses: dtolnay/rust-toolchain@29eef336d9b2848a0b548edc03f92a220660cdb8 # stable
- uses: taiki-e/install-action@873c7452cadb7c034694a1282227095d93fbdf92 # v2.79.14
with:
tool: cargo-deny
- name: Run cargo deny
run: cargo deny check
lint-success:
name: lint success
runs-on: ubuntu-latest
if: always()
permissions: {}
needs:
- clippy
- fmt
- tempo-lints
- typos
- deny
timeout-minutes: 30
steps:
- name: Decide whether the needed jobs succeeded or failed
uses: re-actors/alls-green@05ac9388f0aebcb5727afa17fcccfecd6f8ec5fe # v1.2.2
with:
jobs: ${{ toJSON(needs) }}