File tree Expand file tree Collapse file tree 4 files changed +10
-22
lines changed Expand file tree Collapse file tree 4 files changed +10
-22
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change 7
7
runs-on : ubuntu-latest
8
8
steps :
9
9
- uses : actions/checkout@v2
10
+ with :
11
+ fetch-depth : 0
10
12
- uses : gradle/wrapper-validation-action@v1
11
13
- uses : actions/setup-java@v1
12
14
with :
@@ -20,24 +22,15 @@ jobs:
20
22
key : ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties') }}
21
23
restore-keys : |
22
24
${{ runner.os }}-gradle-
23
- - uses : actions /setup-ruby@v1
25
+ - uses : ruby /setup-ruby@v1
24
26
with :
25
27
ruby-version : ' 3.0'
26
- - name : Restore Gem cache
27
- uses : actions/cache@v2
28
- with :
29
- path : |
30
- vendor/bundle
31
- key : ${{ runner.os }}-gem-${{ hashFiles('Gemfile') }}
32
- restore-keys : |
33
- ${{ runner.os }}-gem-
28
+ bundler-cache : true
34
29
- name : Run lint and unit test
35
30
run : ./gradlew --continue :apng-drawable:testDebugUnitTest :apng-drawable:lintDebug :apng-drawable:ktlintMainSourceSetCheck
36
31
- name : Run Danger
37
- if : ${{ cancelled() }}
38
- env :
39
- GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
40
- JOB_STATUS : ${{ job.status }}
41
- run : |
42
- bundle install
43
- bundle exec danger --remove-previous-comments --fail-on-errors=true
32
+ if : ${{ cancelled() != true }}
33
+ env :
34
+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
35
+ JOB_STATUS : ${{ job.status }}
36
+ run : bundle exec danger --remove-previous-comments --fail-on-errors=true
Original file line number Diff line number Diff line change @@ -245,4 +245,3 @@ $RECYCLE.BIN/
245
245
/tmp
246
246
.cxx /
247
247
/Gemfile.lock
248
- /vendor /bundle
Original file line number Diff line number Diff line change @@ -22,6 +22,4 @@ android_lint.lint(inline_mode: true)
22
22
23
23
return unless status_report [ :errors ] . empty?
24
24
25
- return markdown "Check Failed" if ENV [ "JOB_STATUS" ] != "success"
26
-
27
- return markdown "Passed"
25
+ return markdown "Build Failed" if ENV [ "JOB_STATUS" ] != "success"
You can’t perform that action at this time.
0 commit comments