-
-
Notifications
You must be signed in to change notification settings - Fork 11
50 lines (48 loc) · 1.55 KB
/
regression-tests.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
name: regression-tests
on:
push:
branches-ignore:
- "dependabot/**"
pull_request:
branches:
- "master"
schedule:
- cron: "0 13 * * *"
workflow_dispatch:
jobs:
scraper-regression-tests:
runs-on: ubuntu-latest
services:
redis:
image: redis
options: >-
--health-cmd "redis-cli ping"
--health-interval 10s
--health-timeout 5s
--health-retries 5
ports:
- 6379:6379
steps:
- uses: actions/checkout@v3
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: 3.1.2
- name: Install dependencies
run: bundle install
- name: API (non-search) tests
env:
test_cookie: ${{ secrets.TEST_COOKIE}}
test_cookie_user_2: ${{ secrets.COOKIE_FAFEED_2 }}
test_cookie_user_3: ${{ secrets.COOKIE_FAFEED_3 }}
test_cookie_hidden_favs: ${{ secrets.COOKIE_NO_WATCHERS }}
test_cookie_not_classic: ${{ secrets.COOKIE_MODERN_THEME }}
run: bundle exec "rspec spec tests/integration/ --exclude-pattern tests/integration/search_spec.rb"
- name: Search API tests
env:
test_cookie: ${{ secrets.TEST_COOKIE}}
test_cookie_user_2: ${{ secrets.COOKIE_FAFEED_2 }}
test_cookie_user_3: ${{ secrets.COOKIE_FAFEED_3 }}
test_cookie_hidden_favs: ${{ secrets.COOKIE_NO_WATCHERS }}
test_cookie_not_classic: ${{ secrets.COOKIE_MODERN_THEME }}
run: bundle exec "rspec spec tests/integration/search_spec.rb"