Skip to content

Commit

Permalink
빌드 테스트 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
zipizigi committed Nov 15, 2023
1 parent d67f0f8 commit 3fd38e8
Show file tree
Hide file tree
Showing 2 changed files with 52 additions and 1 deletion.
48 changes: 48 additions & 0 deletions .github/workflows/build-test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
name: Build Test

on:
push:
branches: [ "main", "develop" ]
pull_request:
branches: [ "main", "develop" ]


jobs:
build:
name: Build Test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: set up JDK 17
uses: actions/setup-java@v3
with:
distribution: 'temurin'
java-version: 17

- name: Setup Gradle
uses: gradle/gradle-build-action@v2
with:
cache-overwrite-existing: true

- name: create google-services.json
run: |
echo '${{ secrets.GOOGLE_SERVICES_JSON }}' > app/google-services.json
- name: build
run: >-
./gradlew build
-x ktlintKotlinScriptCheck -x ktlintMainSourceSetCheck -x ktlintTestSourceSetCheck
lint:
name: lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- name: ktlint
uses: ScaCap/action-ktlint@master
with:
github_token: ${{ secrets.github_token }}
ktlint_version: 1.0.1
file_glob: '!**/src/test/**'
reporter: github-pr-check # github-pr-check,github-pr-review,github-check
5 changes: 4 additions & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,7 @@ android.nonTransitiveRClass=true
## Automatically convert third-party libraries to use AndroidX
android.enableJetifier=true
android.defaults.buildfeatures.buildconfig=true
#android.nonFinalResIds=false
#android.nonFinalResIds=false

org.gradle.parallel=true
org.gradle.caching=true

0 comments on commit 3fd38e8

Please sign in to comment.