Skip to content

perf: paginate account credit debits #1458

perf: paginate account credit debits

perf: paginate account credit debits #1458

Workflow file for this run

name: Mono CI
on:
push:
branches:
- main
# Pattern matched against refs/tags
tags:
# Push events to every git tag not containing /
# NOTE: '**' would match tags with / in them, e.g. "foo/bar",
# but we want to use the tag as a docker tag as well, so it's best avoided.
- '*'
pull_request:
branches:
- '**'
# To add ready_for_review as a trigger we need to list all the defaults.
types:
- opened
- reopened
- synchronize
- ready_for_review
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.sha }}
cancel-in-progress: true
jobs:
license:
uses: ./.github/workflows/license.yaml
secrets: inherit
contracts-prettier:
uses: ./.github/workflows/contracts-prettier.yaml
secrets: inherit
contracts-deployment-test:
uses: ./.github/workflows/contracts-deployment-test.yaml
needs: [ contracts-prettier ]
secrets: inherit
contracts-test:
uses: ./.github/workflows/contracts-test.yaml
needs: [ contracts-prettier ]
secrets: inherit
contracts-storage:
uses: ./.github/workflows/contracts-storage.yaml
needs: [ contracts-prettier ]
secrets: inherit
## This causes too much unpredictable noise, turning our builds red whenever a new vulnerability is found.
## It's better to have a separate workflow for auditing, and have it run on a schedule.
## However, given this code is purely used for tooling and not for production, it's not a big deal.
# contracts-pnpm-audit:
# uses: ./.github/workflows/contracts-pnpm-audit.yaml
# needs: [contracts-prettier]
contracts-sast:
uses: ./.github/workflows/contracts-sast.yaml
needs: [ contracts-prettier ]
secrets: inherit
extras:
uses: ./.github/workflows/extras.yaml
needs: [ contracts-prettier ]
secrets: inherit
build:
uses: ./.github/workflows/build.yaml
needs: [ license ]
secrets: inherit
unit-tests:
uses: ./.github/workflows/tests-unit.yaml
secrets: inherit
needs:
- build
e2e-tests:
uses: ./.github/workflows/tests-e2e.yaml
secrets: inherit
needs:
- build
docker-publish:
uses: ./.github/workflows/docker-publish.yaml
secrets: inherit
# Dependencies are not strictly necessary, but if fendermint tests pass they publish docker too, so they better work.
# It is because of these needs that all the filters are allowed to run on `main` too, otherwise this would be disabled.
# It could be done in a more granular approach inside the workflows to allow the job to pass but opt-out of testing,
# but I guess it doesn't hurt to run a final round of unconditional tests, even though it takes longer to publish.
if: >-
github.ref == 'refs/heads/main' ||
github.ref_type == 'tag'
needs:
- contracts-test # generates the ABI artifacts (although fendermint can do on its own too)
- build
- unit-tests
- e2e-tests