1+ name : Bot 'XRP on Mère Denis'
2+ on :
3+ push :
4+ branches :
5+ - family/ripple
6+
7+ jobs :
8+ start-runner :
9+ name : " start ec2 instance (Linux)"
10+ if : ${{ always() }}
11+ uses : ledgerhq/actions/.github/workflows/start-linux-runner.yml@main
12+ secrets :
13+ CI_BOT_TOKEN : ${{ secrets.CI_BOT_TOKEN }}
14+
15+ stop-runner :
16+ name : " stop ec2 instance (Linux)"
17+ needs : [start-runner, run-bot]
18+ uses : ledgerhq/actions/.github/workflows/stop-linux-runner.yml@main
19+ if : ${{ always() }}
20+ with :
21+ label : ${{ needs.start-runner.outputs.label }}
22+ ec2-instance-id : ${{ needs.start-runner.outputs.ec2-instance-id }}
23+ secrets :
24+ CI_BOT_TOKEN : ${{ secrets.CI_BOT_TOKEN }}
25+
26+ run-bot :
27+ needs : [start-runner]
28+ runs-on : ${{ needs.start-runner.outputs.label }}
29+ steps :
30+ - name : prepare runner
31+ run : |
32+ sudo growpart /dev/nvme0n1 1
33+ sudo resize2fs /dev/nvme0n1p1
34+ - uses : actions/checkout@v2
35+ - name : Retrieving coin apps
36+ uses : actions/checkout@v2
37+ with :
38+ repository : LedgerHQ/coin-apps
39+ token : ${{ secrets.PAT }}
40+ path : coin-apps
41+ - uses : actions/setup-node@master
42+ with :
43+ node-version : 14.x
44+ - name : install yarn
45+ run : npm i -g yarn
46+ - name : pull docker image
47+ run : docker pull ghcr.io/ledgerhq/speculos
48+ - name : kill apt-get
49+ run : sudo killall -w apt-get apt || echo OK
50+ - name : Install linux deps
51+ run : sudo apt-get install -y libusb-1.0-0-dev jq
52+ - name : Install dependencies
53+ run : |
54+ yarn global add yalc
55+ yarn --frozen-lockfile
56+ yarn ci-setup-cli
57+ - name : BOT
58+ env :
59+ SEED : ${{ secrets.SEED1 }}
60+ VERBOSE_FILE : bot-tests.txt
61+ GITHUB_SHA : ${GITHUB_SHA}
62+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
63+ GITHUB_RUN_ID : ${{ github.run_id }}
64+ GITHUB_WORKFLOW : ${{ github.workflow }}
65+ SLACK_API_TOKEN : ${{ secrets.SLACK_API_TOKEN }}
66+ SLACK_CHANNEL : ci-xrp-ll
67+ BOT_FILTER_FAMILY : ripple
68+ EXPERIMENTAL_CURRENCIES_JS_BRIDGE : ripple
69+ run : COINAPPS=$PWD/coin-apps yarn ci-test-bot
70+ timeout-minutes : 120
71+ - name : Run coverage
72+ if : failure() || success()
73+ run : CODECOV_TOKEN=${{ secrets.CODECOV_TOKEN }} npx codecov
74+ - name : upload logs
75+ if : failure() || success()
76+ uses : actions/upload-artifact@v1
77+ with :
78+ name : bot-tests.txt
79+ path : bot-tests.txt
0 commit comments