-
Notifications
You must be signed in to change notification settings - Fork 2
96 lines (85 loc) · 2.04 KB
/
main.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
name: Tests
on: [ push ]
jobs:
lint:
runs-on: ubuntu-latest
steps:
-
name: Checkout Source Code
uses: actions/checkout@v3
with:
fetch-depth: '1'
-
name: Install ruby 2.7.7
uses: ruby/setup-ruby@v1
with:
ruby-version: 2.7.7
-
name: Run Lint
run: |
gem install rubocop
gem install rubocop-performance
gem install rubocop-rake
gem install rubocop-rspec
rubocop --parallel
ci:
needs: lint
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
include:
-
name: "Default"
ruby: 2.7.8
gemfile: Gemfile
-
ruby: 2.7.8
gemfile: gemfiles/Gemfile.5.2._gemfile
-
ruby: 2.7.8
gemfile: gemfiles/Gemfile.6.1._gemfile
-
ruby: 3.0.6
gemfile: gemfiles/Gemfile.6.1._gemfile
-
ruby: 3.2.2
gemfile: gemfiles/Gemfile.7.0._gemfile
-
ruby: head
gemfile: gemfiles/Gemfile.7.0._gemfile
-
ruby: 3.2.2
gemfile: gemfiles/rails_edge.gemfile
-
ruby: head
gemfile: gemfiles/rails_edge.gemfile
env:
BUNDLE_GEMFILE: "${{ matrix.gemfile }}"
BUNDLE_WITHOUT: production
BUNDLE_JOBS: 3
BUNDLE_RETRY: 3
steps:
-
name: Checkout Source Code
uses: actions/checkout@v3
with:
fetch-depth: '1'
-
name: Install ruby ${{ matrix.ruby }}
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby }}
-
name: Set Bundle ${{ matrix.gemfile }}
run: |
gem update --system
gem install bundler
-
name: Bundle Install ${{ matrix.gemfile }}
run: bundle install
-
name: Run test suite
run: |
echo $BUNDLE_GEMFILE
bundle exec rake