-
Notifications
You must be signed in to change notification settings - Fork 6
84 lines (67 loc) · 1.67 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
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
name: Tests
on: pull_request
jobs:
rubocop:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
bundler-cache: true
- name: Rubocop
run: |
bundle exec rubocop
rspec:
runs-on: ubuntu-latest
services:
mongodb:
image: mongo:4.4
ports:
- 27017:27017
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
bundler-cache: true
- name: Run RSpec unit tests
env:
API_HOST: "http://127.0.0.1:3000"
HARVESTER_API_KEY: YOUR_HARVESTER_API_KEY
MANAGER_HOST: "http://127.0.0.1:3001"
HARVESTER_CACHING_ENABLED: "false"
LINKCHECKER_EMAIL: "[email protected]"
LINK_CHECKING_ENABLED: "true"
LINKCHECKER_RECIPIENTS: "[email protected]"
WORKER_KEY: YOUR_WORKER_KEY
run: |
bundle exec rspec spec --fail-fast --format=progress
brakeman:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
bundler-cache: true
- name: Run brakeman
run: |
gem install brakeman
brakeman --run-all-checks
bundle-audit:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
bundler-cache: true
- name: Run the gems audit
run: |
gem install bundler-audit
bundle audit check --update