diff --git a/.github/workflows/Compile.yml b/.github/workflows/Compile.yml new file mode 100644 index 0000000000..1beed7ad8f --- /dev/null +++ b/.github/workflows/Compile.yml @@ -0,0 +1,48 @@ +name: Compile & Formatting +env: + 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 ++2.12.12 test:compile scalafmtCheckAll + +# FIXME Need new secp256k1 bindings on windows +# WindowsTest: +# 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 diff --git a/.github/workflows/Docs.yml b/.github/workflows/Docs.yml new file mode 100644 index 0000000000..2ea206bfdc --- /dev/null +++ b/.github/workflows/Docs.yml @@ -0,0 +1,25 @@ +name: Docs +env: + COVERALLS_REPO_TOKEN: ${{ secrets.COVERALLS_REPO_TOKEN }} + +on: + pull_request: + +jobs: + Compile-Website: + 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 ++2.13.4 docs/mdoc diff --git a/.github/workflows/Linux_2.12_App_Chain_Node_Core_Tests.yml b/.github/workflows/Linux_2.12_App_Chain_Node_Core_Tests.yml new file mode 100644 index 0000000000..003a1d4f59 --- /dev/null +++ b/.github/workflows/Linux_2.12_App_Chain_Node_Core_Tests.yml @@ -0,0 +1,25 @@ +name: Linux 2.12 App, Chain, Node, and Core Tests +env: + COVERALLS_REPO_TOKEN: ${{ secrets.COVERALLS_REPO_TOKEN }} + +on: + pull_request: + +jobs: + test: + 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: run tests + run: sbt ++2.12.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 diff --git a/.github/workflows/Linux_2.12_KeyManager_Wallet_DLC_Tests.yml b/.github/workflows/Linux_2.12_KeyManager_Wallet_DLC_Tests.yml new file mode 100644 index 0000000000..faf8e586ba --- /dev/null +++ b/.github/workflows/Linux_2.12_KeyManager_Wallet_DLC_Tests.yml @@ -0,0 +1,25 @@ +name: Linux 2.12 KeyManager, Wallet, and DLC tests +env: + COVERALLS_REPO_TOKEN: ${{ secrets.COVERALLS_REPO_TOKEN }} + +on: + pull_request: + +jobs: + test: + 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: run tests + run: sbt ++2.12.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 diff --git a/.github/workflows/Linux_2.12_RPC_Tests.yml b/.github/workflows/Linux_2.12_RPC_Tests.yml new file mode 100644 index 0000000000..cbbb6dae2b --- /dev/null +++ b/.github/workflows/Linux_2.12_RPC_Tests.yml @@ -0,0 +1,25 @@ +name: Linux 2.13 bitcoind and eclair rpc tests +env: + COVERALLS_REPO_TOKEN: ${{ secrets.COVERALLS_REPO_TOKEN }} + +on: + pull_request: + +jobs: + test: + 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: run tests + run: sbt ++2.12.12 downloadBitcoind downloadEclair coverage bitcoindRpcTest/test bitcoindRpc/coverageReport bitcoindRpc/coverageAggregate bitcoindRpc/coveralls eclairRpcTest/test eclairRpc/coverageReport eclairRpc/coverageAggregate eclairRpc/coveralls \ No newline at end of file diff --git a/.github/workflows/Linux_2.13_App_Chain_Node_Core_Tests.yml b/.github/workflows/Linux_2.13_App_Chain_Node_Core_Tests.yml new file mode 100644 index 0000000000..003a1d4f59 --- /dev/null +++ b/.github/workflows/Linux_2.13_App_Chain_Node_Core_Tests.yml @@ -0,0 +1,25 @@ +name: Linux 2.12 App, Chain, Node, and Core Tests +env: + COVERALLS_REPO_TOKEN: ${{ secrets.COVERALLS_REPO_TOKEN }} + +on: + pull_request: + +jobs: + test: + 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: run tests + run: sbt ++2.12.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 diff --git a/.github/workflows/Linux_2.13_KeyManager_Wallet_DLC_Tests.yml b/.github/workflows/Linux_2.13_KeyManager_Wallet_DLC_Tests.yml new file mode 100644 index 0000000000..22edac5359 --- /dev/null +++ b/.github/workflows/Linux_2.13_KeyManager_Wallet_DLC_Tests.yml @@ -0,0 +1,25 @@ +name: Linux 2.13 KeyManager, Wallet, and DLC tests +env: + COVERALLS_REPO_TOKEN: ${{ secrets.COVERALLS_REPO_TOKEN }} + +on: + pull_request: + +jobs: + test: + 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: run tests + run: sbt ++2.13.4 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 diff --git a/.github/workflows/Linux_2.13_RPC_Tests.yml b/.github/workflows/Linux_2.13_RPC_Tests.yml new file mode 100644 index 0000000000..7f5599cf27 --- /dev/null +++ b/.github/workflows/Linux_2.13_RPC_Tests.yml @@ -0,0 +1,25 @@ +name: Linux 2.13 bitcoind and eclair rpc tests +env: + COVERALLS_REPO_TOKEN: ${{ secrets.COVERALLS_REPO_TOKEN }} + +on: + pull_request: + +jobs: + test: + 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: run tests + run: sbt ++2.13.4 downloadBitcoind downloadEclair coverage bitcoindRpcTest/test bitcoindRpc/coverageReport bitcoindRpc/coverageAggregate bitcoindRpc/coveralls eclairRpcTest/test eclairRpc/coverageReport eclairRpc/coverageAggregate eclairRpc/coveralls \ No newline at end of file diff --git a/.github/workflows/Mac_2.13_RPC_Tests.yml b/.github/workflows/Mac_2.13_RPC_Tests.yml new file mode 100644 index 0000000000..9cd7acd0a9 --- /dev/null +++ b/.github/workflows/Mac_2.13_RPC_Tests.yml @@ -0,0 +1,25 @@ +name: Mac 2.13 bitcoind and eclair rpc tests +env: + COVERALLS_REPO_TOKEN: ${{ secrets.COVERALLS_REPO_TOKEN }} + +on: + pull_request: + +jobs: + test: + 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: run tests + run: sbt ++2.13.4 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 diff --git a/.github/workflows/Mac_2.13_Wallet_Node_DLC_Tests.yml b/.github/workflows/Mac_2.13_Wallet_Node_DLC_Tests.yml new file mode 100644 index 0000000000..e2661ae350 --- /dev/null +++ b/.github/workflows/Mac_2.13_Wallet_Node_DLC_Tests.yml @@ -0,0 +1,25 @@ +name: Mac 2.13 Wallet, Node, and DLC tests +env: + COVERALLS_REPO_TOKEN: ${{ secrets.COVERALLS_REPO_TOKEN }} + +on: + pull_request: + +jobs: + test: + 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: run tests + run: sbt ++2.13.4 downloadBitcoind coverage walletTest/test wallet/coverageReport wallet/coverageAggregate wallet/coveralls nodeTest/test node/coverageReport node/coverageAggregate node/coveralls dlcOracleTest/test dlcOracle/coverageReport dlcOracle/coveralls \ No newline at end of file diff --git a/.github/workflows/PostgresTests.yml b/.github/workflows/PostgresTests.yml new file mode 100644 index 0000000000..dc6a25db45 --- /dev/null +++ b/.github/workflows/PostgresTests.yml @@ -0,0 +1,27 @@ +name: PostgreSQL Tests +env: + COVERALLS_REPO_TOKEN: ${{ secrets.COVERALLS_REPO_TOKEN }} + +on: + pull_request: + +jobs: + test: + 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: run tests + run: sbt ++2.13.4 downloadBitcoind dbCommonsTest/test walletTest/test chainTest/test nodeTest/test diff --git a/.github/workflows/Secp_Disabled_Tests.yml b/.github/workflows/Secp_Disabled_Tests.yml new file mode 100644 index 0000000000..4974f4223c --- /dev/null +++ b/.github/workflows/Secp_Disabled_Tests.yml @@ -0,0 +1,27 @@ +name: Secp256k1 Disabled Core Test +env: + COVERALLS_REPO_TOKEN: ${{ secrets.COVERALLS_REPO_TOKEN }} + +on: + pull_request: + +jobs: + test: + 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: run tests + run: sbt ++2.13.4 cryptoTest/test coreTest/test