mirror of
https://github.com/bitcoin-s/bitcoin-s.git
synced 2024-11-19 09:52:09 +01:00
38 lines
980 B
YAML
38 lines
980 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: '21'
|
|
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 dbCommonsTest/test walletTest/test dlcWalletTest/test chainTest/test dlcOracleTest/test nodeTest/test
|