diff --git a/.github/workflows/gradle-wrapper-validation.yml b/.github/workflows/gradle-wrapper-validation.yml index 405a2b306..2efc6f973 100644 --- a/.github/workflows/gradle-wrapper-validation.yml +++ b/.github/workflows/gradle-wrapper-validation.yml @@ -1,10 +1,11 @@ -name: "Validate Gradle Wrapper" +name: Validate Gradle Wrapper on: [push, pull_request] jobs: validation: - name: "Validation" + name: Validation runs-on: ubuntu-latest + steps: - uses: actions/checkout@v2 - uses: gradle/wrapper-validation-action@v1 diff --git a/.github/workflows/issue_closer.yml b/.github/workflows/issue_closer.yml index cd8cf284e..de3c7107c 100644 --- a/.github/workflows/issue_closer.yml +++ b/.github/workflows/issue_closer.yml @@ -1,5 +1,6 @@ name: Issue closer on: [issues] + jobs: autoclose: runs-on: ubuntu-latest @@ -31,4 +32,4 @@ jobs: repo-token: ${{ secrets.GITHUB_TOKEN }} type: body regex: ".*\\* (Tachiyomi version|Android version|Device): \\?.*" - message: "@${issue.user.login} this issue was automatically closed because the requested information was not filled out." \ No newline at end of file + message: "@${issue.user.login} this issue was automatically closed because the requested information was not filled out." diff --git a/.github/workflows/pr_build_check.yml b/.github/workflows/pr_build_check.yml new file mode 100644 index 000000000..a974ff0fb --- /dev/null +++ b/.github/workflows/pr_build_check.yml @@ -0,0 +1,18 @@ +name: Pull request build check +on: [pull_request] + +jobs: + build: + runs-on: ubuntu-latest + + steps: + - name: Clone repo + uses: actions/checkout@v2 + - name: Set up JDK 1.8 + uses: actions/setup-java@v1 + with: + java-version: 1.8 + - name: Install NDK + run: sudo ${ANDROID_HOME}/tools/bin/sdkmanager --install "ndk;21.3.6528147" + - name: Build project + run: ./gradlew assembleDebug