Skip to content

Commit

Permalink
[FEAT] CI 환경 구축
Browse files Browse the repository at this point in the history
  • Loading branch information
josushell authored Jan 22, 2024
1 parent d9fc794 commit b01e012
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/android.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: Main branch Gradle build

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

jobs:
build:

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: Grant execute permission for gradlew
run: chmod +x gradlew
- name: Build with Gradle
run: ./gradlew build

- name: test Detekt
run: ./gradlew detekt
- name: test Ktlint
run: ./gradlew ktlintCheck

1 comment on commit b01e012

@easyhooon
Copy link
Collaborator

@easyhooon easyhooon commented on b01e012 Jan 22, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

https://jojoldu.tistory.com/698

JDK 17로 set up 해야할듯

그리고 terminal 에서 java --version 해서 17 미만이면 17위로 다운받아야할거같아 전에도 이 에러가 발생했는데 로컬 자바 환경도 영향을 받더라구

Please sign in to comment.