@@ -21,63 +21,63 @@ jobs:
21
21
build :
22
22
runs-on : ubuntu-latest
23
23
steps :
24
- # チェックアウト
25
- - uses : actions/checkout@v2
24
+ # チェックアウト
25
+ - uses : actions/checkout@v4
26
26
27
- # JDKのセットアップ
28
- - name : set up JDK 17
29
- uses : actions/setup-java@v2
30
- with :
31
- distribution : ' zulu'
32
- java-version : ' 17'
27
+ # JDKのセットアップ
28
+ - name : set up JDK 17
29
+ uses : actions/setup-java@v2
30
+ with :
31
+ distribution : ' zulu'
32
+ java-version : ' 17'
33
33
34
- # Gradleのキャッシュ復元
35
- - uses : actions/cache@v2
36
- with :
37
- path : ~/.gradle/caches
38
- key : ${{ runner.os }}-gradle-build-${{ hashFiles('**/*.gradle*') }}
39
- restore-keys : |
40
- ${{ runner.os }}-gradle-build-
34
+ # Gradleのキャッシュ復元
35
+ - uses : actions/cache@v2
36
+ with :
37
+ path : ~/.gradle/caches
38
+ key : ${{ runner.os }}-gradle-build-${{ hashFiles('**/*.gradle*') }}
39
+ restore-keys : |
40
+ ${{ runner.os }}-gradle-build-
41
41
42
- # 依存関係の出力
43
- - name : Displays the Android dependencies of the project
44
- run : ./gradlew androidDependencies
42
+ # 依存関係の出力
43
+ - name : Displays the Android dependencies of the project
44
+ run : ./gradlew androidDependencies
45
45
46
- # コンパイル
47
- - name : Run Compile
48
- run : ./gradlew assembleDebug
46
+ # コンパイル
47
+ - name : Run Compile
48
+ run : ./gradlew assembleDebug
49
49
50
50
ktlint :
51
51
runs-on : ubuntu-latest
52
52
steps :
53
- # チェックアウト
54
- - uses : actions/checkout@v2
53
+ # チェックアウト
54
+ - uses : actions/checkout@v4
55
55
56
- # インストール
57
- - name : Install ktlint
58
- run : |
59
- curl -sSLO https://github.com/pinterest/ktlint/releases/download/0.42.1/ktlint
60
- chmod a+x ktlint
61
- sudo mv ktlint /usr/local/bin/
62
-
63
- # 静的解析
64
- - name : Lint with ktlint
65
- run : ktlint --reporter=checkstyle,output=build/ktlint-report.xml
66
- continue-on-error : true
56
+ # インストール
57
+ - name : Install ktlint
58
+ run : |
59
+ curl -sSLO https://github.com/pinterest/ktlint/releases/download/0.42.1/ktlint
60
+ chmod a+x ktlint
61
+ sudo mv ktlint /usr/local/bin/
67
62
68
- # 結果の表示
69
- - name : Show results on GitHub
70
- uses : yutailang0119/action-ktlint@v1
71
- with :
72
- xml_path : build/ktlint-report.xml
63
+ # 静的解析
64
+ - name : Lint with ktlint
65
+ run : ktlint --reporter=checkstyle,output=build/ktlint-report.xml
66
+ continue-on-error : true
73
67
74
- # アーティファクトへアップロード
75
- - name : Upload results Artifact
76
- uses : actions/upload-artifact@v2
77
- if : success() || failure()
78
- with :
79
- name : results
80
- path : |
81
- **/build/ktlint-report.xml
82
- if-no-files-found : error
83
- retention-days : 14
68
+ # 結果の表示
69
+ - name : Show results on GitHub
70
+ uses : yutailang0119/action-ktlint@v1
71
+ with :
72
+ xml_path : build/ktlint-report.xml
73
+
74
+ # アーティファクトへアップロード
75
+ - name : Upload results Artifact
76
+ uses : actions/upload-artifact@v4
77
+ if : success() || failure()
78
+ with :
79
+ name : results
80
+ path : |
81
+ **/build/ktlint-report.xml
82
+ if-no-files-found : error
83
+ retention-days : 14
0 commit comments