diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 00000000..cb803b22 --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,28 @@ +name: Build +on: + pull_request: + push: + branches: [ main ] # Trigger on pushes to the main branch + workflow_dispatch: + +jobs: + build: + runs-on: macos-latest + steps: + - name: Checkout source code + uses: actions/checkout@v4 + + - name: Set up JDK 17 + uses: actions/setup-java@v4 + with: + java-version: '17' + distribution: 'corretto' + + - name: Setup Gradle + uses: gradle/actions/setup-gradle@v4 + + - name: Setup Android SDK + uses: android-actions/setup-android@v3 + + - name: Check, Assemble Android and compile iOS + run: ./gradlew ktlintCheck assembleDebug compileKotlinIosX64 --no-daemon \ No newline at end of file diff --git a/.github/workflows/gradle-wrapper.yaml b/.github/workflows/gradle-wrapper.yaml new file mode 100644 index 00000000..8f6a8f10 --- /dev/null +++ b/.github/workflows/gradle-wrapper.yaml @@ -0,0 +1,15 @@ +name: gradle-wrapper + +on: + pull_request: + paths: + - 'gradlew' + - 'gradlew.bat' + - 'gradle/wrapper/**' + +jobs: + validate: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: gradle/actions/wrapper-validation@v4 diff --git a/.github/workflows/ktlint.yml b/.github/workflows/ktlint.yml deleted file mode 100644 index c3408317..00000000 --- a/.github/workflows/ktlint.yml +++ /dev/null @@ -1,17 +0,0 @@ -name: ktlint - -on: - pull_request: - -jobs: - ktlint: - runs-on: ubuntu-latest - steps: - - name: Checkout source code - uses: actions/checkout@v3 - - uses: actions/setup-java@v3 - with: - distribution: "adopt" - java-version: "17" - - name: run ktlint - run: ./gradlew ktlintCheck