Fix TransactionContext impls (#168)
#517
This file contains hidden or 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@v4 | |
| - name: Install Dependencies (aptos-indexer-processors-sdkl) | |
| 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 | |
| working-directory: aptos-indexer-processors-sdk | |
| - name: Install Dependencies (examples) | |
| 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 | |
| working-directory: examples | |
| - name: Run Linter | |
| run: | | |
| bash scripts/rust_lint.sh --check | |
| - name: Check Banned Dependencies | |
| run: bash scripts/check_banned_deps.sh |