-
-
Notifications
You must be signed in to change notification settings - Fork 11.1k
88 lines (82 loc) · 2.35 KB
/
Copy pathverify-update-service.yml
File metadata and controls
88 lines (82 loc) · 2.35 KB
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: Verify Update Service
on:
workflow_dispatch:
inputs:
version:
description: "Release version to verify, with or without leading v"
required: true
type: string
channel:
description: "Release channel to verify"
required: false
type: choice
options:
- beta
default: beta
platform:
description: "Release platform to verify ('all' or comma-separated platforms)"
required: false
type: string
default: all
update_url:
description: "Lantern update endpoint"
required: false
type: string
default: "https://update.getlantern.org/update/lantern"
timeout_seconds:
description: "How long to poll the update service"
required: false
type: number
default: 2700
interval_seconds:
description: "Delay between polling attempts"
required: false
type: number
default: 60
workflow_call:
inputs:
version:
required: true
type: string
channel:
required: false
type: string
default: beta
platform:
required: false
type: string
default: all
update_url:
required: false
type: string
default: "https://update.getlantern.org/update/lantern"
timeout_seconds:
required: false
type: number
default: 2700
interval_seconds:
required: false
type: number
default: 60
permissions:
contents: read
concurrency:
group: verify-update-service-${{ inputs.channel }}-${{ inputs.platform }}-${{ inputs.version }}
cancel-in-progress: false
jobs:
verify:
runs-on: ubuntu-latest
steps:
- name: Checkout repo
uses: actions/checkout@v4
- name: Test update service verifier
run: python3 -m unittest scripts/ci/verify_update_service_test.py
- name: Run update service verifier
run: |
python3 scripts/ci/verify_update_service.py \
--update-url "${{ inputs.update_url }}" \
--channel "${{ inputs.channel }}" \
--platform "${{ inputs.platform }}" \
--version "${{ inputs.version }}" \
--timeout-seconds "${{ inputs.timeout_seconds }}" \
--interval-seconds "${{ inputs.interval_seconds }}"