generated from actions/typescript-action
-
Notifications
You must be signed in to change notification settings - Fork 5
134 lines (116 loc) · 3.46 KB
/
versions.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
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
name: Validate
on:
push:
branches:
- '**'
paths-ignore:
- '**.md'
pull_request:
paths-ignore:
- '**.md'
schedule:
- cron: 0 0 * * *
jobs:
local-cache:
name: Setup local-cache version
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [macos-latest, windows-latest, ubuntu-latest]
tor: [0.4.8-rc11, 0.4.8.11]
steps:
- name: Checkout
uses: actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b # v4.1.4
- name: Validate setup-tor ${{ matrix.tor }}
uses: ./
with:
tor-version: ${{ matrix.tor }}
- name: Verify tor
run: __tests__/verify-tor.sh ${{ matrix.tor }}
shell: bash
setup-versions-from-manifest:
name: Setup ${{ matrix.tor }} ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [macos-13, windows-latest, ubuntu-latest]
tor: [0.4.5-rc7, 0.4.5.7]
steps:
- name: Checkout
uses: actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b # v4.1.4
- name: Validate setup-tor ${{ matrix.tor }}
uses: ./
with:
tor-version: ${{ matrix.tor }}
- name: Verify tor
run: __tests__/verify-tor.sh ${{ matrix.tor }}
shell: bash
setup-default-version:
name: Setup Tor as default version on ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [macos-latest, windows-latest, ubuntu-latest]
steps:
- name: Checkout
uses: actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b # v4.1.4
- name: Validate setup-tor
uses: ./
- name: Verify tor
run: __tests__/verify-tor.sh 'emit'
shell: bash
setup-with-daemon:
name: Setup Tor with daemon
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b # v4.1.4
- name: Validate setup-tor
uses: ./
with:
daemon: true
- name: Verify tor
run: |
ps -aux | grep bin | grep tor || { echo 'Run Tor failed' 1>&2; exit 1; }
netstat -anp | grep :9050
lsof | grep 9050
shell: bash
- name: Validate setup-tor
uses: ./
with:
daemon: true
port: 12345
- name: Verify tor
run: |
ps -aux | grep bin | grep tor || { echo 'Run Tor failed' 1>&2; exit 1; }
netstat -anp | grep :12345
lsof | grep 12345
shell: bash
setup-with-config:
name: Setup Tor with a configuration input on ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest]
steps:
- name: Checkout
uses: actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b # v4.1.4
- name: Validate setup-tor
uses: ./
id: setup-tor-with-config
with:
config: |
ControlPort 9051
CookieAuthentication 0
- name: Verify tor
run: __tests__/verify-tor.sh 'emit'
shell: bash
- name: Config was not configured
if: ${{ ! contains(steps.setup-tor-with-config.outputs.config-path, 'setup-tor-conf') }}
run: |
echo "echo "::error::No config path was configured, config path set to: ${{ steps.setup-tor-with-config.outputs.config-path }}"
exit 1