mirror of
https://github.com/bitcoin-s/bitcoin-s.git
synced 2025-02-26 15:42:49 +01:00
* Add delay to wait for zmq to get setup in chainTest * Add println * only run zmq tests on CI * Bump Thread.sleep from 1ms -> 10ms * Empty commit to re-run CI * Revert things * try making thread names more unique * try no sleep * Remove println * Put logging back * Try removing ZMQ.NOBLOCK * turn off parallelExecution to see if it matters * Add more logging * Re-enable parallelExecution * Try catching all NonFatal exns * Bump timeout * Bump maxTries * Try downgrading jeromq back to 0.5.4 * Revert things * scalafmt
37 lines
941 B
YAML
37 lines
941 B
YAML
name: PostgreSQL Tests
|
|
env:
|
|
COVERALLS_REPO_TOKEN: ${{ secrets.COVERALLS_REPO_TOKEN }}
|
|
|
|
on:
|
|
pull_request:
|
|
|
|
jobs:
|
|
test:
|
|
runs-on: ubuntu-latest
|
|
timeout-minutes: 60
|
|
if: "! contains(github.event.pull_request.labels.*.name, 'documentation')"
|
|
env:
|
|
PG_ENABLED: "1"
|
|
PG_STARTUP_WAIT: "60"
|
|
TESTCONTAINERS_HOST_OVERRIDE: "localhost"
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v2
|
|
with:
|
|
fetch-depth: 0
|
|
- name: Setup Scala
|
|
uses: actions/setup-java@v3
|
|
with:
|
|
distribution: 'adopt'
|
|
java-version: '17'
|
|
cache: 'sbt'
|
|
- name: Cache
|
|
uses: actions/cache@v3
|
|
with:
|
|
path: |
|
|
~/.ivy2/cache
|
|
~/.sbt
|
|
~/.bitcoin-s/binaries
|
|
key: ${{ runner.os }}-postgres-cache
|
|
- name: run tests
|
|
run: sbt "zmq/test;chainTest/testOnly *Zmq*; walletTest/testOnly *ZMQ*"
|