Files
dshackle/.github/workflows/test.yaml
EugeneDrpc a34f2186cc Log index validator (#699)
* log index validator - wip

* fix: Handle edge cases in LogIndexValidator and fix GitHub Actions

gix critical edge case: when first transaction has no logs, second transaction starting at logIndex=0 is VALID behavior
 null handling
fix  'repo_token' parameter

* - Use Mono.empty() instead of Mono.just(null)
- Use defaultIfEmpty for handling empty results

* wip : add tests for LogIndexValidator

* test fixes

* fix: Fix ktlint issues in LogIndexValidatorTest

- Remove wildcard import
- Fix trailing spaces
- Add missing trailing commas
- Fix import order
- Add newline at end of file

* add disable option

* add logs for error case

* save prevState on doOnNext

* also check for first tx log index order

* add not continius indexes test

* make code thread safe

* use upstream.getHead

* search CHECK_TX_COUNT instead of 0 and 1 indexes

* refactor double rpc call
2025-08-08 18:03:10 +02:00

46 lines
904 B
YAML

name: Tests
on:
# if pushed directly
push:
paths-ignore:
- '**/docs/**'
- '**/.github/**'
branches:
- master
- release/*
- ci/*
# on a pull request
pull_request:
paths-ignore:
- '**/docs/**'
branches:
- master
- release/*
- ci/*
jobs:
unit-test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
submodules: recursive
- name: Set up JDK
uses: actions/setup-java@v4
with:
distribution: 'zulu'
java-version: 21
- name: Install System Libs
run: sudo apt-get install -y openssl libapr1
- name: Setup gradle
uses: gradle/gradle-build-action@v2
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
- name: Check
run: make test
env:
CI: true