Skip to content
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

[CI] spotless 자동 apply 적용 #456

Closed
wants to merge 45 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
45 commits
Select commit Hold shift + click to select a range
eb7f973
Update android.yml
Ahn-seokjoo Sep 1, 2023
91bf558
Delete .github/workflows/lint_check.yml
Ahn-seokjoo Sep 1, 2023
b86ebc2
Update android.yml
Ahn-seokjoo Sep 1, 2023
fb26d01
Update android.yml
Ahn-seokjoo Sep 1, 2023
a03107a
Update android.yml
Ahn-seokjoo Sep 5, 2023
131b2f1
test
Ahn-seokjoo Sep 5, 2023
d6c36e8
Update android.yml
Ahn-seokjoo Sep 5, 2023
ba1528a
Update android.yml
Ahn-seokjoo Sep 5, 2023
5c4d1d1
Update android.yml
Ahn-seokjoo Sep 5, 2023
ae16ee6
Update android.yml
Ahn-seokjoo Sep 5, 2023
94a0bbb
Update android.yml
Ahn-seokjoo Sep 5, 2023
dd09e0e
Update android.yml
Ahn-seokjoo Sep 5, 2023
1d449f1
Update android.yml
Ahn-seokjoo Sep 5, 2023
7cf1ad6
Update android.yml
Ahn-seokjoo Sep 5, 2023
87d6d19
Update android.yml
Ahn-seokjoo Sep 5, 2023
69b6f94
Update android.yml
Ahn-seokjoo Sep 5, 2023
76ea141
Update android.yml
Ahn-seokjoo Sep 5, 2023
dcc1b42
Update android.yml
Ahn-seokjoo Sep 5, 2023
d55394b
Update android.yml
Ahn-seokjoo Sep 5, 2023
9ea186e
Update android.yml
Ahn-seokjoo Sep 5, 2023
4821f7b
Update android.yml
Ahn-seokjoo Sep 5, 2023
bcbcff4
Update android.yml
Ahn-seokjoo Sep 5, 2023
43f484d
Update android.yml
Ahn-seokjoo Sep 5, 2023
a1ab562
Update android.yml
Ahn-seokjoo Sep 5, 2023
7b9cacd
Update android.yml
Ahn-seokjoo Sep 5, 2023
94013e3
Update android.yml
Ahn-seokjoo Sep 5, 2023
7c85b4a
Update android.yml
Ahn-seokjoo Sep 5, 2023
65da5bc
Update android.yml
Ahn-seokjoo Sep 5, 2023
6b83ce1
Update android.yml
Ahn-seokjoo Sep 5, 2023
6e4e8dd
Update android.yml
Ahn-seokjoo Sep 5, 2023
07bdf19
Update android.yml
Ahn-seokjoo Sep 5, 2023
22f9127
Apply Spotless formatting
Sep 5, 2023
5e0575c
Update android.yml
Ahn-seokjoo Sep 5, 2023
ebaac4e
Update android.yml
Ahn-seokjoo Sep 5, 2023
6f1e629
test
Ahn-seokjoo Sep 5, 2023
11cee03
Apply Spotless formatting
Sep 5, 2023
b54cff2
Update android.yml
Ahn-seokjoo Sep 5, 2023
ca07ef6
test
Ahn-seokjoo Sep 5, 2023
41eaa90
Update android.yml
Ahn-seokjoo Sep 5, 2023
91c3cde
Update android.yml
Ahn-seokjoo Sep 5, 2023
e0e8e3b
Apply Spotless formatting
Sep 5, 2023
2f4c47d
Update android.yml
Ahn-seokjoo Sep 5, 2023
49f4ee8
Update android.yml
Ahn-seokjoo Sep 6, 2023
8778bfd
Update and rename android.yml to android.yaml
Ahn-seokjoo Sep 6, 2023
63a952c
Update android.yaml
Ahn-seokjoo Sep 6, 2023
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
113 changes: 113 additions & 0 deletions .github/workflows/android.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,113 @@
name: Android CI

on:
push:
branches: [ "develop" ]
pull_request:
types: [opened, synchronize, ready_for_review, edited]
branches: [ "develop", "refactor**", "fix**", "feat**", "feature**", "chore**", "test**" ]

jobs:
spotless_check:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- name: set up JDK 11
uses: actions/setup-java@v3
with:
java-version: '11'
distribution: 'temurin'
cache: gradle
- name: add local.properties
run: |
echo api.key=\"${{secrets.API_KEY}}\" > local.properties
- name: Cache Gradle Packages
uses: actions/cache@v3
with:
path: |
~/.gradle/caches
~/.gradle/wrapper
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties', '**/buildSrc/**/*.kt') }}
restore-keys: |
${{ runner.os }}-gradle-
- name: Grant execute permission for gradlew
run: chmod +x gradlew
- name: Spotless Check
run: ./gradlew spotlessCheck

spotless_apply:
needs: spotless_check
if: failure()
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- name: set up JDK 11
uses: actions/setup-java@v3
with:
java-version: '11'
distribution: 'temurin'
cache: gradle
- name: add local.properties
run: |
echo api.key=\"${{secrets.API_KEY}}\" > local.properties
- name: Cache Gradle Packages
uses: actions/cache@v3
with:
path: |
~/.gradle/caches
~/.gradle/wrapper
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties', '**/buildSrc/**/*.kt') }}
restore-keys: |
${{ runner.os }}-gradle-

- name: Grant execute permission for gradlew
run: chmod +x gradlew
- name: set git config
if: success()
run: |
git config --global user.email "[email protected]"
git config --global user.name "$GITHUB_ACTOR"
git remote update
git fetch
git checkout origin/$GITHUB_HEAD_REF
- name: Spotless Apply
run: ./gradlew spotlessApply
- name: git commit and push
if: ${{ success() }}
run: |
git add .
git commit -m "Apply Spotless formatting"
git push origin HEAD:$GITHUB_HEAD_REF

build:
runs-on: ubuntu-latest
needs: spotless_check
if: success()

steps:
- uses: actions/checkout@v3
- name: set up JDK 11
uses: actions/setup-java@v3
with:
java-version: '11'
distribution: 'temurin'
cache: gradle
- name: add local.properties
run: |
echo api.key=\"${{secrets.API_KEY}}\" > local.properties
- name: Cache Gradle Packages
uses: actions/cache@v3
with:
path: |
~/.gradle/caches
~/.gradle/wrapper
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties', '**/buildSrc/**/*.kt') }}
restore-keys: |
${{ runner.os }}-gradle-

- name: Grant execute permission for gradlew
run: chmod +x gradlew
- name: Build with Gradle
run: ./gradlew app:assembleDebug
41 changes: 0 additions & 41 deletions .github/workflows/android.yml

This file was deleted.

39 changes: 0 additions & 39 deletions .github/workflows/lint_check.yml

This file was deleted.