-
Notifications
You must be signed in to change notification settings - Fork 78
95 lines (82 loc) · 2.5 KB
/
ci.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
name: CI
on:
push:
branches: [master]
pull_request:
branches: [master]
jobs:
bundle-audit:
uses: ./.github/workflows/build.yml
with:
description: "Check bundle for known CVEs"
command: "rake bundle:audit"
brakeman:
uses: ./.github/workflows/build.yml
with:
description: "Analyse code for vulnerabilities"
command: "rake brakeman:check"
spec-admin-controllers:
uses: ./.github/workflows/build.yml
with:
description: "Run specs"
command: "rake spec:controllers"
spec_opts: "-f doc --force-color -P spec/controllers/admin/*_spec.rb"
spec-public-controllers:
uses: ./.github/workflows/build.yml
with:
description: "Run specs"
command: "rake spec:controllers"
spec_opts: "-f doc --force-color -P spec/controllers/*_spec.rb"
spec-jobs:
uses: ./.github/workflows/build.yml
with:
description: "Run specs"
command: "rake spec:jobs"
spec_opts: "-f doc --force-color -P spec/jobs/**/*_spec.rb"
spec-mailers:
uses: ./.github/workflows/build.yml
with:
description: "Run specs"
command: "rake spec"
spec_opts: "-f doc --force-color -P spec/mailers/**/*_spec.rb"
spec-models:
uses: ./.github/workflows/build.yml
with:
description: "Run specs"
command: "rake spec"
spec_opts: "-f doc --force-color -P spec/models/**/*_spec.rb"
spec-requests:
uses: ./.github/workflows/build.yml
with:
description: "Run specs"
command: "rake spec"
spec_opts: "-f doc --force-color -P spec/{requests,routing}/**/*_spec.rb"
spec-other:
uses: ./.github/workflows/build.yml
with:
description: "Run specs"
command: "rake spec"
spec_opts: "-f doc --force-color -P spec/{helpers,lib,presenters,tasks,validators,views}/**/*_spec.rb"
javascript:
uses: ./.github/workflows/build.yml
with:
description: "Run javascript specs"
command: "rake jasmine:ci"
cucumber-admin:
uses: ./.github/workflows/build.yml
with:
description: "Run cucumber specs"
command: "rake cucumber"
cucumber_format: "pretty"
cucumber_opts: "--tags @admin --profile default"
save_screenshots: true
save_logs: true
cucumber-public:
uses: ./.github/workflows/build.yml
with:
description: "Run cucumber specs"
command: "rake cucumber"
cucumber_format: "pretty"
cucumber_opts: "--tags 'not @admin' --profile default"
save_screenshots: true
save_logs: true