File tree 2 files changed +32
-39
lines changed
template-compose/.github/workflows
2 files changed +32
-39
lines changed Original file line number Diff line number Diff line change @@ -9,6 +9,36 @@ concurrency:
9
9
cancel-in-progress : true
10
10
11
11
jobs :
12
+ danger :
13
+ runs-on : ubuntu-latest
14
+ steps :
15
+ - uses : actions/checkout@v4
16
+ - name : Set up JDK
17
+ uses : actions/setup-java@v4
18
+ with :
19
+ distribution : ' temurin'
20
+ java-version : ' 17'
21
+ - name : Run Lint
22
+ run : bash ./gradlew lint
23
+ - uses : ruby/setup-ruby@v1
24
+ with :
25
+ ruby-version : ' 3.0'
26
+ bundler-cache : true
27
+ - uses : actions/cache@v4
28
+ with :
29
+ path : vendor/bundle
30
+ key : ${{ runner.os }}-gems-${{ hashFiles('Gemfile') }}
31
+ restore-keys : |
32
+ ${{ runner.os }}-gems-
33
+ - uses : MeilCli/danger-action@v6
34
+ with :
35
+ plugins_file : ' Gemfile'
36
+ install_path : ' vendor/bundle'
37
+ danger_file : ' Dangerfile'
38
+ danger_id : ' danger-pr'
39
+ env :
40
+ DANGER_GITHUB_API_TOKEN : ${{ secrets.GITHUB_TOKEN }}
41
+
12
42
review_pull_request :
13
43
name : Review pull request
14
44
runs-on : ubuntu-latest
48
78
- name : Run unit tests with Kover on template-compose
49
79
working-directory : ./template-compose
50
80
run : ./gradlew koverXmlReport
51
-
52
- - name : Set up Ruby
53
- uses : ruby/setup-ruby@v1
54
- with :
55
- ruby-version : ' 2.7'
56
- bundler-cache : true
57
-
58
- - name : Cache gems
59
- uses : actions/cache@v2
60
- with :
61
- path : vendor/bundle
62
- key : ${{ runner.os }}-gems-${{ hashFiles('**/Gemfile.lock') }}
63
- restore-keys : |
64
- ${{ runner.os }}-gems-
65
-
66
- - name : Run Danger
67
- env :
68
- DANGER_GITHUB_API_TOKEN : ${{ secrets.GITHUB_TOKEN }}
69
- run : bundle exec danger
Original file line number Diff line number Diff line change 41
41
- name : Set up Ruby
42
42
uses : ruby/setup-ruby@v1
43
43
with :
44
- ruby-version : ' 2.7'
45
- bundler-cache : true
46
-
47
- - name : Cache gems
48
- uses : actions/cache@v2
49
- with :
50
- path : vendor/bundle
51
- key : ${{ runner.os }}-gems-${{ hashFiles('**/Gemfile.lock') }}
52
- restore-keys : |
53
- ${{ runner.os }}-gems-
54
-
55
- - name : Install Bundle and check environment versions
56
- run : |
57
- echo 'Install Bundle'
58
- bundle config path vendor/bundle
59
- bundle install
60
- echo 'Check environment setup versions'
61
- ruby --version
62
- gem --version
63
- bundler --version
44
+ ruby-version : ' 2.7'
45
+ bundler-cache : true # runs 'bundle install' and caches installed gems automatically
64
46
65
47
- name : Run Danger
66
48
env :
You can’t perform that action at this time.
0 commit comments