Skip to content

Commit b065d0d

Browse files
authored
Merge pull request #131 from NID-kt/feature/issue-52
Github ActionのArtifactをv4にしました
2 parents 1445904 + da0b650 commit b065d0d

File tree

1 file changed

+49
-49
lines changed

1 file changed

+49
-49
lines changed

.github/workflows/main.yml

+49-49
Original file line numberDiff line numberDiff line change
@@ -21,63 +21,63 @@ jobs:
2121
build:
2222
runs-on: ubuntu-latest
2323
steps:
24-
# チェックアウト
25-
- uses: actions/checkout@v2
24+
# チェックアウト
25+
- uses: actions/checkout@v4
2626

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'
3333

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-
4141
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
4545

46-
# コンパイル
47-
- name: Run Compile
48-
run: ./gradlew assembleDebug
46+
# コンパイル
47+
- name: Run Compile
48+
run: ./gradlew assembleDebug
4949

5050
ktlint:
5151
runs-on: ubuntu-latest
5252
steps:
53-
# チェックアウト
54-
- uses: actions/checkout@v2
53+
# チェックアウト
54+
- uses: actions/checkout@v4
5555

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/
6762
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
7367

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

Comments
 (0)