File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ name : Tutorial Tests
2+
3+ on :
4+ push :
5+ branches : [main]
6+ pull_request :
7+ branches : [main]
8+ workflow_dispatch :
9+ inputs :
10+ test_suite :
11+ description : ' Which tests to run'
12+ type : choice
13+ options :
14+ - read-only
15+ - read-write
16+ - all
17+ default : read-only
18+
19+ permissions :
20+ contents : read
21+
22+ concurrency :
23+ group : tutorial-tests-${{ github.workflow }}-${{ github.ref }}
24+ cancel-in-progress : true
25+
26+ jobs :
27+ test-read-only :
28+ runs-on : ubuntu-latest
29+ timeout-minutes : 10
30+ if : >
31+ github.event_name != 'workflow_dispatch' ||
32+ inputs.test_suite == 'read-only' ||
33+ inputs.test_suite == 'all'
34+ steps :
35+ - uses : actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
36+ - uses : actions/setup-node@53b83947a5a98c8d113130e565377fae1a50d02f # v6.3.0
37+ with :
38+ node-version : ' 20'
39+ - run : npm ci
40+ - name : Run read-only tutorial tests
41+ env :
42+ NETWORK : testnet
43+ PLATFORM_MNEMONIC : ${{ secrets.PLATFORM_MNEMONIC }}
44+ run : npm run test:read-only
45+
46+ test-read-write :
47+ runs-on : ubuntu-latest
48+ timeout-minutes : 30
49+ if : >
50+ github.event_name == 'workflow_dispatch' &&
51+ (inputs.test_suite == 'read-write' || inputs.test_suite == 'all')
52+ concurrency :
53+ group : tutorial-read-write
54+ cancel-in-progress : false
55+ steps :
56+ - uses : actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
57+ - uses : actions/setup-node@53b83947a5a98c8d113130e565377fae1a50d02f # v6.3.0
58+ with :
59+ node-version : ' 20'
60+ - run : npm ci
61+ - name : Run read-write tutorial tests
62+ env :
63+ NETWORK : testnet
64+ PLATFORM_MNEMONIC : ${{ secrets.PLATFORM_MNEMONIC }}
65+ run : npm run test:read-write
You can’t perform that action at this time.
0 commit comments