Update main.yml

(cherry picked from commit 6ef7a62dea)
This commit is contained in:
Him188 2020-03-04 21:09:58 +08:00
parent 9a039e1602
commit ee3e247206

View File

@ -1,6 +1,6 @@
name: CI
name: Gradle CI
on: [push]
on: [push, pull_request]
jobs:
build:
@ -8,7 +8,12 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: setup-android
run: chmod 777 gradlew & ./gradlew build -x mirai-core:jvmTest
- uses: actions/checkout@v2
- name: Set up JDK 1.8
uses: actions/setup-java@v1
with:
java-version: 1.8
- name: Grant execute permission for gradlew
run: chmod +x gradlew
- name: Build with Gradle
run: ./gradlew build