-
Notifications
You must be signed in to change notification settings - Fork 12
83 lines (76 loc) · 2.79 KB
/
nbgl_tests.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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
name: Run NBGL tests
on:
push:
branches:
- master
- main
- develop
pull_request:
workflow_dispatch:
jobs:
test-access:
runs-on: ubuntu-latest
env:
GITHUB_TOKEN: ${{ secrets.CI_BOT_TOKEN }}
steps:
- name: Test access to app-nbgl repository
run: |
if gh issue list --repo LedgerHQ/app-nbgl-tests; then
echo "Access to the repository tests is successful."
else
echo "Failed to access the repository."
fi
- name: Test access to ledger-secure-sdk repository
run: |
if gh api -X GET /repos/LedgerHQ/app-nbgl-test; then
echo "Access to the repository is successful."
else
echo "Failed to access the repository."
fi
run_NBGL_tests:
runs-on: ubuntu-latest
env:
GITHUB_TOKEN: ${{ secrets.CI_BOT_TOKEN }}
steps:
- name: Test access to app-ethereum repository
run: |
if gh issue list --repo LedgerHQ/app-ethereum; then
echo "Access to the repository is successful."
else
echo "Failed to access the repository."
fi
- name: Test access to app-nbgl repository
run: |
if gh issue list --repo LedgerHQ/app-nbgl-tests; then
echo "Access to the repository tests is successful."
else
echo "Failed to access the repository."
fi
- name: Trigger the workflow in the target repository1
run: |
gh api -X POST \
-H "Accept: application/vnd.github.v3+json" \
/repos/LedgerHQ/ledger-secure-sdk/dispatches \
-f event_type=trigger-workflow \
-f client_payload='{"inputs":{"golden_run":"Open a PR"}}'
- name: Trigger the workflow in the target repository21
run: |
gh api -X POST \
-H "Accept: application/vnd.github.v3+json" \
/repos/LedgerHQ/app-ethereum/dispatches \
-f event_type=trigger-workflow \
-f client_payload='{"inputs":{"golden_run":"Open a PR"}}'
- name: Trigger the workflow in the target repository2
run: |
gh api -X POST \
-H "Accept: application/vnd.github.v3+json" \
/repos/LedgerHQ/app-nbgl-tests/dispatches \
-f event_type=trigger-workflow \
-f client_payload='{"inputs":{"golden_run":"Open a PR"}}'
- name: Trigger the NBGL tests
run: |
curl -X POST \
-H "Accept: application/vnd.github.v3+json" \
-H "Authorization: token $GITHUB_TOKEN" \
https://api.github.com/repos/LedgerHQ/app-nbgl-tests/dispatches \
-d '{"event_type":"trigger-workflow","client_payload":{"inputs":{"golden_run":"Open a PR"}}}'