-
Notifications
You must be signed in to change notification settings - Fork 0
61 lines (53 loc) · 1.3 KB
/
build.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
---
name: CI
on:
push:
branches: [main]
pull_request:
branches: [main]
concurrency:
group: ${{ github.ref }}
cancel-in-progress: true
jobs:
bundle-audit:
uses: ./.github/workflows/linters.yml
with:
bundler-audit: true
brakeman:
uses: ./.github/workflows/linters.yml
with:
brakeman: true
rubocop:
uses: ./.github/workflows/linters.yml
with:
rubocop: true
rome:
uses: ./.github/workflows/linters.yml
with:
rome: true
language-versions:
uses: ./.github/workflows/linters.yml
with:
language-versions: true
specs:
uses: ./.github/workflows/testing.yml
strategy:
matrix:
specs:
- ["models", "[a-p]*_spec.rb"]
- ["models", "[q-z]*_spec.rb"]
- ["controllers", "*_spec.rb"]
- ["requests", "*_spec.rb"]
- ["system", "[a-f]*_spec.rb"]
- ["system", "[g-k]*_spec.rb"]
- ["system", "[l-r]*_spec.rb"]
- ["system", "[s-z]*_spec.rb"]
- [
"other",
"*_spec.rb",
"{components,helpers,jobs,services}",
]
fail-fast: false
with:
name: "${{matrix.specs[0]}}: ${{matrix.specs[1]}}"
include: "spec/${{matrix.specs[2] || matrix.specs[0]}}/**/${{matrix.specs[1]}}"