Skip to content

chore: remove schemars #3454

chore: remove schemars

chore: remove schemars #3454

Workflow file for this run

name: Tests
on:
push:
branches: [develop]
pull_request:
types: [opened, synchronize, reopened, ready_for_review]
workflow_dispatch:
schedule: [cron: "40 1 * * *"]
concurrency:
group: tests-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: ${{ github.ref != 'refs/heads/develop' }}
permissions:
contents: read
env:
RUSTFLAGS: -Dwarnings
jobs:
tests:
if: (!github.event.pull_request.draft || contains(github.event.pull_request.body, '[run-ci]'))
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
- name: rust version
run: |
rustc --version
cargo --version
- uses: taiki-e/install-action@cargo-nextest
- name: Run tests
run: make test
tests-with-network:
if: (!github.event.pull_request.draft || contains(github.event.pull_request.body, '[run-ci]'))
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
- name: rust version
run: |
rustc --version
cargo --version
- uses: taiki-e/install-action@cargo-nextest
- uses: ./.github/actions/start-local-network
- name: Run tests that require local network (GraphQL Client and Tx Builder)
env:
NETWORK: "local"
run: make test-with-localnet
examples:
if: (!github.event.pull_request.draft || contains(github.event.pull_request.body, '[run-ci]'))
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
- uses: ./.github/actions/start-local-network
- name: Run the examples
run: make examples
- name: Run the release example
run: make rust-release-example
- name: Run the polling-indexer example
run: |
docker exec postgres psql -U postgres -c "CREATE DATABASE polling_indexer;"
cargo run -p polling-indexer -- \
--graphql-url http://localhost:9125/graphql \
--db-url postgres://postgres:postgrespw@localhost:5432/polling_indexer \
--start-checkpoint 0 \
--end-checkpoint 5
doctests:
if: (!github.event.pull_request.draft || contains(github.event.pull_request.body, '[run-ci]'))
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
- name: doctests
run: |
make test-docs
- name: rustdoc
run: |
make build-docs