-
-
Notifications
You must be signed in to change notification settings - Fork 80
54 lines (45 loc) · 1.29 KB
/
test.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
---
name: CI
on:
push:
branches: '*'
pull_request:
branches: '*'
permissions:
contents: read
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
ruby: ['3.1', '3.2', '3.3', head]
steps:
- uses: actions/checkout@v4
- name: Install Act dependencies
if: ${{ env.ACT }}
run: |
apt-get update && apt-get install sudo -y # https://github.com/nektos/act/issues/107
- name: Install and setup tor
run: |
sudo apt-get update
sudo apt-get install -y tor
tor --version
sudo sh -c 'echo SocksPort 9050 > /etc/tor/torrc'
sudo sh -c 'echo ControlPort 9051 >> /etc/tor/torrc'
export HashedControlPassword=$(tor --quiet --hash-password "")
sudo sh -c "echo HashedControlPassword $HashedControlPassword >> /etc/tor/torrc"
sudo sh -c 'cat /etc/tor/torrc'
tor --verify-config
# sudo service tor start
# pidof tor
- name: Set up Ruby
uses: ruby/setup-ruby@v1 # https://github.com/ruby/setup-ruby
with:
ruby-version: ${{ matrix.ruby }}
bundler-cache: true
- name: Install gems
run: |
bundle install
- name: Run tests
run: |
bundle exec rake