From 3ea5a94283d2be311c21237a5a64b8c3ae1b4453 Mon Sep 17 00:00:00 2001 From: Goooler Date: Sun, 28 Aug 2022 12:38:56 +0800 Subject: [PATCH 1/2] Add a GHA config for CI --- .github/workflows/ci.yml | 54 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 54 insertions(+) create mode 100644 .github/workflows/ci.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 00000000..8a27c427 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,54 @@ +name: CI + +on: + push: + branches: + - master + paths-ignore: + - '.idea/**' + - '.gitattributes' + - '.github/**.json' + - '.gitignore' + - '.gitmodules' + - '**.md' + - 'LICENSE' + - 'NOTICE' + pull_request: + paths-ignore: + - '.idea/**' + - '.gitattributes' + - '.github/**.json' + - '.gitignore' + - '.gitmodules' + - '**.md' + - 'LICENSE' + - 'NOTICE' + +jobs: + wrapper-validation: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - uses: gradle/wrapper-validation-action@v1 + + lint: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - uses: actions/setup-java@v3 + with: + distribution: 'zulu' + java-version: 11 + - uses: gradle/gradle-build-action@v2 + - run: ./gradlew lint + + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - uses: actions/setup-java@v3 + with: + distribution: 'zulu' + java-version: 11 + - uses: gradle/gradle-build-action@v2 + - run: ./gradlew sample:assembleDebug \ No newline at end of file From 95b972a71905f3ef6a368c3c19856aac8bee245d Mon Sep 17 00:00:00 2001 From: Goooler Date: Sun, 28 Aug 2022 12:48:04 +0800 Subject: [PATCH 2/2] Bump sample's minSdk to 15 --- sample/build.gradle | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sample/build.gradle b/sample/build.gradle index 726f3810..5270db29 100644 --- a/sample/build.gradle +++ b/sample/build.gradle @@ -23,7 +23,7 @@ android { defaultConfig { applicationId "me.drakeet.multitype.sample" - minSdkVersion buildConfig.minSdkVersion + minSdkVersion 15 targetSdkVersion buildConfig.targetSdkVersion versionCode buildConfig.versionCode versionName buildConfig.versionName