-
Notifications
You must be signed in to change notification settings - Fork 2
103 lines (88 loc) · 2.02 KB
/
pull_request.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
name: Pipeline
on:
- pull_request
jobs:
build:
name: Test
uses: ./.github/workflows/docker.yml
secrets: inherit
cypress:
name: Cypress
uses: ./.github/workflows/docker.yml
secrets: inherit
with:
target: cypress
development:
name: Development
uses: ./.github/workflows/docker.yml
secrets: inherit
with:
target: development
publish: false
production:
name: Production
uses: ./.github/workflows/docker.yml
secrets: inherit
with:
target: production
publish: false
rubocop:
name: Rubocop
uses: ./.github/workflows/lint.yml
with:
command: bundle exec rubocop --config .rubocop.yml .
needs: build
reek:
name: Reek
uses: ./.github/workflows/lint.yml
with:
command: bundle exec reek --config .reek.yml .
needs: build
brakeman:
name: Brakeman
uses: ./.github/workflows/lint.yml
with:
command: bundle exec brakeman
needs: build
scsslint:
name: SCSSLint
uses: ./.github/workflows/lint.yml
with:
command: bundle exec scss-lint --config .scss-lint.yml
needs: build
tests:
name: Backend
uses: ./.github/workflows/tests.yml
needs: build
e2e-admin:
name: Admin
uses: ./.github/workflows/cypress.yml
with:
pattern: spec/end-to-end/tests/admin/**.js
needs: [build, cypress]
e2e-frontend:
name: Frontend
uses: ./.github/workflows/cypress.yml
with:
pattern: spec/end-to-end/tests/frontend/**.js
needs: [build, cypress]
bundler-audit:
name: Bundler Audit
uses: ./.github/workflows/lint.yml
with:
command: bundle exec bundle-audit check --update
needs: build
eslint:
name: ESLint
uses: ./.github/workflows/lint.yml
with:
command: yarn eslint
image: gmmcal/gmmcal:cypress
needs: cypress
eslint_tests:
name: ESLint / Tests
uses: ./.github/workflows/lint.yml
with:
command: yarn eslint:tests
image: gmmcal/gmmcal:cypress
needs: cypress