-
Notifications
You must be signed in to change notification settings - Fork 350
51 lines (49 loc) · 1.75 KB
/
bot-testing-nitrogen.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
name: "[Bot] Testing with 'Nitrogen'"
run-name: Test with 🤖 Nitrogen by @${{github.actor}} ${{inputs.families && format('families={0}',inputs.families) || ''}} ${{inputs.currencies && format('currencies={0}',inputs.currencies) || ''}}
on:
workflow_dispatch:
inputs:
families:
description: coin families to test, separated with commas (,)
required: false
currencies:
description: currency ids to test, separated with commas (,)
required: false
speculos_websocket:
description: check to use speculos with Websocket
type: boolean
required: false
default: false
concurrency:
group: bot-seed7
jobs:
run-bot:
runs-on: [ledger-live-medium-linux]
steps:
- name: Generate token
id: generate-token
uses: tibdex/github-app-token@v1
with:
app_id: ${{ secrets.GH_BOT_APP_ID }}
private_key: ${{ secrets.GH_BOT_PRIVATE_KEY }}
- uses: actions/checkout@v3
- name: Retrieving coin apps
uses: actions/checkout@v3
with:
ref: generated/ledger-live-bot
repository: LedgerHQ/coin-apps
token: ${{ steps.generate-token.outputs.token }}
path: coin-apps
- name: Run the bot
uses: ./tools/actions/composites/bot
id: bot
timeout-minutes: 120
with:
SHOW_LEGACY_NEW_ACCOUNT: "1"
SLACK_API_TOKEN: ${{secrets.SLACK_API_TOKEN}}
SLACK_ICON_EMOJI: ":bot-seed7:"
SEED: ${{ secrets.SEED7 }}
BOT_ENVIRONMENT: testing
BOT_FILTER_FAMILIES: ${{github.event.inputs.families}}
BOT_FILTER_CURRENCIES: ${{github.event.inputs.currencies}}
SPECULOS_USE_WEBSOCKET: ${{inputs.speculos_websocket}}