Add support for custom headers #225
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: "Lint" | |
on: | |
# Allow us to run this specific workflow without a PR | |
workflow_dispatch: | |
pull_request: | |
push: | |
branches: | |
- main | |
# cancel redundant builds | |
concurrency: | |
# for push and workflow_dispatch events we use `github.sha` in the concurrency group and don't really cancel each other out/limit concurrency | |
# for pull_request events newer jobs cancel earlier jobs to save on CI etc. | |
group: ${{ github.workflow }}-${{ github.event_name }}-${{ (github.event_name == 'push' || github.event_name == 'workflow_dispatch') && github.sha || github.head_ref || github.ref }} | |
cancel-in-progress: true | |
jobs: | |
Lint: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Install Dependencies and Run Linter | |
run: | | |
sudo apt update && sudo apt install libdw-dev | |
cargo install cargo-sort | |
rustup update | |
rustup toolchain install nightly | |
rustup component add clippy --toolchain nightly | |
rustup component add rustfmt --toolchain nightly | |
scripts/rust_lint.sh --check | |
working-directory: aptos-indexer-processors-sdk | |
- name: Check Banned Dependencies | |
run: bash scripts/check_banned_deps.sh | |
working-directory: aptos-indexer-processors-sdk |