Skip to content

Github ActionのArtifactをv4にしました #131

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Jan 30, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
98 changes: 49 additions & 49 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,63 +21,63 @@ jobs:
build:
runs-on: ubuntu-latest
steps:
# チェックアウト
- uses: actions/checkout@v2
# チェックアウト
- uses: actions/checkout@v4

# JDKのセットアップ
- name: set up JDK 17
uses: actions/setup-java@v2
with:
distribution: 'zulu'
java-version: '17'
# JDKのセットアップ
- name: set up JDK 17
uses: actions/setup-java@v2
with:
distribution: 'zulu'
java-version: '17'

# Gradleのキャッシュ復元
- uses: actions/cache@v2
with:
path: ~/.gradle/caches
key: ${{ runner.os }}-gradle-build-${{ hashFiles('**/*.gradle*') }}
restore-keys: |
${{ runner.os }}-gradle-build-
# Gradleのキャッシュ復元
- uses: actions/cache@v2
with:
path: ~/.gradle/caches
key: ${{ runner.os }}-gradle-build-${{ hashFiles('**/*.gradle*') }}
restore-keys: |
${{ runner.os }}-gradle-build-

# 依存関係の出力
- name: Displays the Android dependencies of the project
run: ./gradlew androidDependencies
# 依存関係の出力
- name: Displays the Android dependencies of the project
run: ./gradlew androidDependencies

# コンパイル
- name: Run Compile
run: ./gradlew assembleDebug
# コンパイル
- name: Run Compile
run: ./gradlew assembleDebug

ktlint:
runs-on: ubuntu-latest
steps:
# チェックアウト
- uses: actions/checkout@v2
# チェックアウト
- uses: actions/checkout@v4

# インストール
- name: Install ktlint
run: |
curl -sSLO https://github.com/pinterest/ktlint/releases/download/0.42.1/ktlint
chmod a+x ktlint
sudo mv ktlint /usr/local/bin/

# 静的解析
- name: Lint with ktlint
run: ktlint --reporter=checkstyle,output=build/ktlint-report.xml
continue-on-error: true
# インストール
- name: Install ktlint
run: |
curl -sSLO https://github.com/pinterest/ktlint/releases/download/0.42.1/ktlint
chmod a+x ktlint
sudo mv ktlint /usr/local/bin/

# 結果の表示
- name: Show results on GitHub
uses: yutailang0119/action-ktlint@v1
with:
xml_path: build/ktlint-report.xml
# 静的解析
- name: Lint with ktlint
run: ktlint --reporter=checkstyle,output=build/ktlint-report.xml
continue-on-error: true

# アーティファクトへアップロード
- name: Upload results Artifact
uses: actions/upload-artifact@v2
if: success() || failure()
with:
name: results
path: |
**/build/ktlint-report.xml
if-no-files-found: error
retention-days: 14
# 結果の表示
- name: Show results on GitHub
uses: yutailang0119/action-ktlint@v1
with:
xml_path: build/ktlint-report.xml

# アーティファクトへアップロード
- name: Upload results Artifact
uses: actions/upload-artifact@v4
if: success() || failure()
with:
name: results
path: |
**/build/ktlint-report.xml
if-no-files-found: error
retention-days: 14
Loading