Skip to content

NFFL FastNear indexer: CI test #1156

NFFL FastNear indexer: CI test

NFFL FastNear indexer: CI test #1156

Workflow file for this run

name: unit-tests
on:
push:
branches:
- main
pull_request:
paths:
- 'aggregator/**'
- 'core/**'
- 'indexer/**'
- 'offchain/**'
- 'operator/**'
- 'plugin/**'
- 'relayer/**'
jobs:
go_test:
name: Go Unit Tests
runs-on: ubuntu-latest
timeout-minutes: 5
steps:
- uses: actions/checkout@v3
- uses: actions/setup-go@v4
with:
go-version: '1.21'
- name: Test
run: make tests-unit
rust_test:
name: Rust Unit Tests
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: dorny/paths-filter@v3
id: filter
with:
filters: |
rust:
- 'indexer/**'
- 'offchain/**'
- uses: actions-rust-lang/setup-rust-toolchain@v1
if: steps.filter.outputs.rust == 'true'
- run: RUSTFLAGS="$RUSTFLAGS -A dead_code" cargo test # Allow 'dead code' since most containers are not used in unit tests