-
Notifications
You must be signed in to change notification settings - Fork 0
88 lines (88 loc) · 2.84 KB
/
test-pr.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
84
85
86
87
88
name: Test package on PR, or as reusable workflow
on:
workflow_dispatch:
workflow_call:
secrets:
test_host:
required: true
test_timeout:
required: true
test_api_key:
required: true
test_api_secret:
required: true
test_order_key:
required: true
test_order_key2:
required: true
test_order_bundle:
required: true
test_order_eula:
required: true
test_order_id:
required: true
test_campaign_id:
required: true
test_dataset_id:
required: true
test_resource_id:
required: true
test_resource_file1:
required: true
test_resource_file2:
required: true
test_collection_id:
required: true
test_item_id1:
required: true
test_item_id2:
required: true
test_tasking_order_key:
required: true
test_tasking_order_key2:
required: true
test_tasking_order_eula:
required: true
test_tasking_order_bundle:
required: true
test_tasking_order_priority:
required: true
test_tasking_order_cloud:
required: true
pull_request:
types: [opened,edited,synchronize,reopened,ready_for_review,review_requested,]
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: '16.x'
registry-url: 'https://registry.npmjs.org'
- run: npm i
- run: npm test
env:
host: ${{ secrets.test_host }}
timeout: ${{ secrets.test_timeout }}
api_key: ${{ secrets.test_api_key }}
api_secret: ${{ secrets.test_api_secret }}
order_key: ${{ secrets.test_order_key }}
order_key2: ${{ secrets.test_order_key2 }}
order_bundle: ${{ secrets.test_order_bundle }}
order_eula: ${{ secrets.test_order_eula }}
order_id: ${{ secrets.test_order_id }}
campaign_id: ${{ secrets.test_campaign_id }}
dataset_id: ${{ secrets.test_dataset_id }}
resource_id: ${{ secrets.test_resource_id }}
resource_file1: ${{ secrets.test_resource_file1 }}
resource_file2: ${{ secrets.test_resource_file2 }}
collection_id: ${{ secrets.test_collection_id }}
item_id1: ${{ secrets.test_item_id1 }}
item_id2: ${{ secrets.test_item_id2 }}
tasking_order_key: ${{ secrets.test_tasking_order_key }}
tasking_order_key2: ${{ secrets.test_tasking_order_key2 }}
tasking_order_eula: ${{ secrets.test_tasking_order_eula }}
tasking_order_bundle: ${{ secrets.test_tasking_order_bundle }}
tasking_order_priority: ${{ secrets.test_tasking_order_priority }}
tasking_order_cloud: ${{ secrets.test_tasking_order_cloud }}