Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
350 additions
and
86 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,264 @@ | ||
name: CI | ||
env: | ||
SCALA_2_13: 2.13.4 | ||
SCALA_2_12: 2.12.12 | ||
COVERALLS_REPO_TOKEN: ${{ secrets.COVERALLS_REPO_TOKEN }} | ||
|
||
on: | ||
pull_request: | ||
|
||
jobs: | ||
compile: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
- name: Setup Scala | ||
uses: olafurpg/setup-scala@v10 | ||
- name: Cache | ||
uses: actions/cache@v2 | ||
with: | ||
path: | | ||
~/.ivy2/cache | ||
~/.sbt | ||
~/.bitcoin-s/binaries | ||
key: ${{ runner.os }}-cache | ||
- name: Compile and Check Formatting | ||
run: sbt ++${SCALA_2_12} test:compile scalafmtCheckAll | ||
|
||
Compile-Website: | ||
needs: compile | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
- name: Setup Scala | ||
uses: olafurpg/setup-scala@v10 | ||
- name: Cache | ||
uses: actions/cache@v2 | ||
with: | ||
path: | | ||
~/.ivy2/cache | ||
~/.sbt | ||
~/.bitcoin-s/binaries | ||
key: ${{ runner.os }}-cache | ||
- name: Compile website | ||
run: sbt ++${SCALA_2_13} docs/mdoc | ||
|
||
Linux_2-13_Bitcoind_and_Eclair_RPC_Tests: | ||
needs: compile | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
- name: Setup Scala | ||
uses: olafurpg/setup-scala@v10 | ||
- name: Cache | ||
uses: actions/cache@v2 | ||
with: | ||
path: | | ||
~/.ivy2/cache | ||
~/.sbt | ||
~/.bitcoin-s/binaries | ||
key: ${{ runner.os }}-cache | ||
- name: Linux 2.13 bitcoind and eclair rpc tests | ||
run: sbt ++${SCALA_2_13} downloadBitcoind downloadEclair coverage bitcoindRpcTest/test bitcoindRpc/coverageReport bitcoindRpc/coverageAggregate bitcoindRpc/coveralls eclairRpcTest/test eclairRpc/coverageReport eclairRpc/coverageAggregate eclairRpc/coveralls | ||
|
||
Linux_2-12_Bitcoind_and_Eclair_RPC_Tests: | ||
needs: compile | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
- name: Setup Scala | ||
uses: olafurpg/setup-scala@v10 | ||
- name: Cache | ||
uses: actions/cache@v2 | ||
with: | ||
path: | | ||
~/.ivy2/cache | ||
~/.sbt | ||
~/.bitcoin-s/binaries | ||
key: ${{ runner.os }}-cache | ||
- name: Linux 2.12 bitcoind and eclair rpc tests | ||
run: sbt ++${SCALA_2_12} downloadBitcoind downloadEclair coverage bitcoindRpcTest/test bitcoindRpc/coverageReport bitcoindRpc/coverageAggregate bitcoindRpc/coveralls eclairRpcTest/test eclairRpc/coverageReport eclairRpc/coverageAggregate eclairRpc/coveralls | ||
|
||
Linux_2-13_App_Chain_Node_and_Core_Tests: | ||
needs: compile | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
- name: Setup Scala | ||
uses: olafurpg/setup-scala@v10 | ||
- name: Cache | ||
uses: actions/cache@v2 | ||
with: | ||
path: | | ||
~/.ivy2/cache | ||
~/.sbt | ||
~/.bitcoin-s/binaries | ||
key: ${{ runner.os }}-cache | ||
- name: Linux 2.13 App, Chain, Node, and Core Tests | ||
run: sbt ++${SCALA_2_13} downloadBitcoind coverage chainTest/test chain/coverageReport chain/coverageAggregate chain/coveralls nodeTest/test node/coverageReport node/coverageAggregate node/coveralls cryptoTest/test crypto/coverageReport crypto/coverageAggregate crypto/coveralls coreTest/test core/coverageReport core/coverageAggregate core/coveralls secp256k1jni/test zmq/test zmq/coverageReport zmq/coverageAggregate zmq/coveralls appCommonsTest/test appServerTest/test | ||
|
||
Linux_2-12_App_Chain_Node_and_Core_Tests: | ||
needs: compile | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
- name: Setup Scala | ||
uses: olafurpg/setup-scala@v10 | ||
- name: Cache | ||
uses: actions/cache@v2 | ||
with: | ||
path: | | ||
~/.ivy2/cache | ||
~/.sbt | ||
~/.bitcoin-s/binaries | ||
key: ${{ runner.os }}-cache | ||
- name: Linux 2.12 App, Chain, Node, and Core Tests | ||
run: sbt ++${SCALA_2_12} downloadBitcoind coverage chainTest/test chain/coverageReport chain/coverageAggregate chain/coveralls nodeTest/test node/coverageReport node/coverageAggregate node/coveralls cryptoTest/test crypto/coverageReport crypto/coverageAggregate crypto/coveralls coreTest/test core/coverageReport core/coverageAggregate core/coveralls secp256k1jni/test zmq/test zmq/coverageReport zmq/coverageAggregate zmq/coveralls appCommonsTest/test appServerTest/test | ||
|
||
Linux_2-13_KeyManager_Wallet_and_DLC_Tests: | ||
needs: compile | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
- name: Setup Scala | ||
uses: olafurpg/setup-scala@v10 | ||
- name: Cache | ||
uses: actions/cache@v2 | ||
with: | ||
path: | | ||
~/.ivy2/cache | ||
~/.sbt | ||
~/.bitcoin-s/binaries | ||
key: ${{ runner.os }}-cache | ||
- name: Linux 2.13 KeyManager, Wallet, and DLC tests | ||
run: sbt ++${SCALA_2_13} downloadBitcoind coverage keyManagerTest/test keyManager/coverageReport keyManager/coverageAggregate keyManager/coveralls feeProviderTest/test walletTest/test wallet/coverageReport wallet/coverageAggregate wallet/coveralls dlcOracleTest/test dlcOracle/coverageReport dlcOracle/coverageAggregate dlcOracle/coveralls | ||
|
||
Linux_2-12_KeyManager_Wallet_and_DLC_Tests: | ||
needs: compile | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
- name: Setup Scala | ||
uses: olafurpg/setup-scala@v10 | ||
- name: Cache | ||
uses: actions/cache@v2 | ||
with: | ||
path: | | ||
~/.ivy2/cache | ||
~/.sbt | ||
~/.bitcoin-s/binaries | ||
key: ${{ runner.os }}-cache | ||
- name: Linux 2.12 KeyManager, Wallet, and DLC tests | ||
run: sbt ++${SCALA_2_12} downloadBitcoind coverage keyManagerTest/test keyManager/coverageReport keyManager/coverageAggregate keyManager/coveralls feeProviderTest/test walletTest/test wallet/coverageReport wallet/coverageAggregate wallet/coveralls dlcOracleTest/test dlcOracle/coverageReport dlcOracle/coverageAggregate dlcOracle/coveralls | ||
|
||
Secp256k1_Disabled_Tests: | ||
needs: compile | ||
runs-on: ubuntu-latest | ||
env: | ||
DISABLE_SECP256K1: "true" | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
- name: Setup Scala | ||
uses: olafurpg/setup-scala@v10 | ||
- name: Cache | ||
uses: actions/cache@v2 | ||
with: | ||
path: | | ||
~/.ivy2/cache | ||
~/.sbt | ||
~/.bitcoin-s/binaries | ||
key: ${{ runner.os }}-cache | ||
- name: Secp256k1 Disabled Core Test | ||
run: sbt ++${SCALA_2_13} cryptoTest/test coreTest/test | ||
|
||
PostgreSQL_Tests: | ||
needs: compile | ||
runs-on: ubuntu-latest | ||
env: | ||
PG_ENABLED: "1" | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
- name: Setup Scala | ||
uses: olafurpg/setup-scala@v10 | ||
- name: Cache | ||
uses: actions/cache@v2 | ||
with: | ||
path: | | ||
~/.ivy2/cache | ||
~/.sbt | ||
~/.bitcoin-s/binaries | ||
key: ${{ runner.os }}-cache | ||
- name: PostgreSQL tests | ||
run: sbt ++${SCALA_2_13} downloadBitcoind dbCommonsTest/test walletTest/test chainTest/test nodeTest/test | ||
|
||
Mac_2-13_Bitcoind_and_Eclair_RPC_Tests: | ||
needs: compile | ||
runs-on: macos-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
- name: Setup Scala | ||
uses: olafurpg/setup-scala@v10 | ||
- name: Cache | ||
uses: actions/cache@v2 | ||
with: | ||
path: | | ||
~/.ivy2/cache | ||
~/.sbt | ||
~/.bitcoin-s/binaries | ||
key: ${{ runner.os }}-cache | ||
- name: Mac 2.13 bitcoind and eclair rpc tests | ||
run: sbt ++${SCALA_2_13} downloadBitcoind downloadEclair coverage cryptoTest/test coreTest/test appCommonsTest/test bitcoindRpcTest/test bitcoindRpc/coverageReport bitcoindRpc/coverageAggregate bitcoindRpc/coveralls eclairRpcTest/test eclairRpc/coverageReport eclairRpc/coverageAggregate eclairRpc/coveralls | ||
|
||
Mac_2-13_Wallet_Node_and_DLC_Tests: | ||
needs: compile | ||
runs-on: macos-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
- name: Setup Scala | ||
uses: olafurpg/setup-scala@v10 | ||
- name: Cache | ||
uses: actions/cache@v2 | ||
with: | ||
path: | | ||
~/.ivy2/cache | ||
~/.sbt | ||
~/.bitcoin-s/binaries | ||
key: ${{ runner.os }}-cache | ||
- name: Mac 2.13 Wallet, Node, and DLC tests | ||
run: sbt ++${SCALA_2_13} downloadBitcoind coverage walletTest/test wallet/coverageReport wallet/coverageAggregate wallet/coveralls nodeTest/test node/coverageReport node/coverageAggregate node/coveralls dlcOracleTest/test dlcOracle/coverageReport dlcOracle/coveralls | ||
|
||
# FIXME Need new secp256k1 bindings on windows | ||
# WindowsTest: | ||
# needs: compile | ||
# runs-on: windows-latest | ||
# steps: | ||
# - name: Configure git | ||
# run: "git config --global core.autocrlf false" | ||
# shell: bash | ||
# - name: Checkout | ||
# uses: actions/checkout@v2 | ||
# - name: Setup Scala | ||
# uses: olafurpg/setup-scala@v10 | ||
# - name: Cache | ||
# uses: actions/cache@v2 | ||
# with: | ||
# path: | | ||
# ~/.ivy2/cache | ||
# ~/.sbt | ||
# ~/.bitcoin-s/binaries | ||
# key: ${{ runner.os }}-cache | ||
# - name: Windows Crypto, Core, and Database tests | ||
# run: sbt ++${SCALA_2_13} cryptoTest/test coreTest/test dbCommonsTest/test | ||
# shell: bash |
Oops, something went wrong.