diff --git a/.github/workflows/bot_taproot_testnet.yml b/.github/workflows/bot_taproot_testnet.yml new file mode 100644 index 0000000000..0de1168f84 --- /dev/null +++ b/.github/workflows/bot_taproot_testnet.yml @@ -0,0 +1,63 @@ +name: Bot 'Taproot' +on: + schedule: + - cron: "0 6-18 * * 1-5" + +jobs: + run-bot: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - name: Retrieving coin apps + uses: actions/checkout@v2 + with: + repository: LedgerHQ/coin-apps + token: ${{ secrets.PAT }} + path: coin-apps + - uses: actions/setup-node@master + with: + node-version: 14.x + - name: pull docker image + run: docker pull ghcr.io/ledgerhq/speculos + - name: Install linux deps + run: sudo apt-get install -y libusb-1.0-0-dev jq + - name: Get yarn cache + id: yarn-cache + run: echo "::set-output name=dir::$(yarn cache dir)" + - uses: actions/cache@v1 + with: + path: ${{ steps.yarn-cache.outputs.dir }} + key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }} + restore-keys: | + ${{ runner.os }}-yarn- + - name: Install dependencies + run: | + yarn global add yalc + yarn --frozen-lockfile + yarn ci-setup-cli + - name: BOT + env: + SHOW_LEGACY_NEW_ACCOUNT: "1" + DEBUG_HTTP_RESPONSE: "1" + SEED: ${{ secrets.SEED5 }} + VERBOSE_FILE: bot-tests.txt + GITHUB_SHA: ${GITHUB_SHA} + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + GITHUB_RUN_ID: ${{ github.run_id }} + GITHUB_WORKFLOW: ${{ github.workflow }} + SLACK_API_TOKEN: ${{ secrets.SLACK_API_TOKEN }} + SLACK_CHANNEL: live-ft-taproot + BOT_FILTER_FAMILY: bitcoin + EXPERIMENTAL_EXPLORERS: true + EXPERIMENTAL_CURRENCIES_JS_BRIDGE: bitcoin,bitcoin_cash,bsc,litecoin,dash,qtum,zcash,bitcoin_gold,stratis,dogecoin,digibyte,komodo,pivx,zencash,vertcoin,peercoin,viacoin,stakenet,stealthcoin,decred,bitcoin_testnet,tezos + run: COINAPPS=$PWD/coin-apps yarn ci-test-bot + timeout-minutes: 60 + - name: Run coverage + if: failure() || success() + run: CODECOV_TOKEN=${{ secrets.CODECOV_TOKEN }} npx codecov + - name: upload logs + if: failure() || success() + uses: actions/upload-artifact@v1 + with: + name: bot-tests.txt + path: bot-tests.txt