1
1
name : git-fame
2
+
2
3
on : [push]
4
+
5
+ concurrency :
6
+ group : ${{ github.workflow }}-${{ github.ref }}
7
+ cancel-in-progress : true
8
+
3
9
jobs :
4
10
rubocop :
5
11
runs-on : ubuntu-latest
6
12
steps :
7
- - uses : actions/checkout@v4
13
+ - name : Check out repository
14
+ uses : actions/checkout@v4
15
+
16
+ - name : Install cmake
17
+ uses : jwlawson/actions-setup-cmake@v2
8
18
9
- - uses : jwlawson/actions-setup-cmake@v2
10
- - uses : ruby/setup-ruby@v1
19
+ - name : Install ruby
20
+ uses : ruby/setup-ruby@v1
11
21
with :
12
22
bundler-cache : true
13
23
ruby-version : 2.7.5
14
- - run : bundle exec rubocop
24
+
25
+ - name : Rubocop
26
+ run : bundle exec rubocop
15
27
16
28
rspec :
17
29
runs-on : ${{ matrix.os }}
@@ -21,21 +33,31 @@ jobs:
21
33
ruby : ["2.7.5", "3.0.3", "3.1.0", "3.2.0", "3.3.0"]
22
34
os : [ubuntu-latest, macos-latest]
23
35
steps :
24
- - uses : actions/checkout@v4
36
+ - name : Check out repository
37
+ uses : actions/checkout@v4
25
38
with :
26
39
fetch-depth : " 0"
27
- - uses : jwlawson/actions-setup-cmake@v2
28
40
29
- - uses : ruby/setup-ruby@v1
41
+ - name : Install cmake
42
+ uses : jwlawson/actions-setup-cmake@v2
43
+
44
+ - name : Install ruby
45
+ uses : ruby/setup-ruby@v1
30
46
with :
31
47
bundler-cache : true
32
48
ruby-version : ${{ matrix.ruby }}
33
49
34
- - run : bundle exec rspec --format RSpec::Github::Formatter --format progress --color --tty
35
- - run : bundle exec rake install:local
36
- - run : bundle exec exe/git-fame --log-level debug
50
+ - name : Run tests
51
+ run : bundle exec rspec --format RSpec::Github::Formatter --format progress --color --tty
52
+
53
+ - name : Install gem locally
54
+ run : bundle exec rake install:local
55
+
56
+ - name : Run git-fame
57
+ run : bundle exec exe/git-fame --log-level debug
37
58
38
- - uses : paambaati/codeclimate-action@v9
59
+ - name : Codeclimate (code coverage)
60
+ uses : paambaati/codeclimate-action@v9
39
61
env :
40
62
CC_TEST_REPORTER_ID : ${{secrets.CC_TEST_REPORTER_ID}}
41
63
CI : true
0 commit comments