diff --git a/.github/workflows/check-build.yml b/.github/workflows/check-build.yml new file mode 100644 index 00000000000..ae9dfe8fb3a --- /dev/null +++ b/.github/workflows/check-build.yml @@ -0,0 +1,49 @@ +name: CI + +on: + pull_request: + branches: + - main + +jobs: + compile: + + runs-on: ubuntu-latest + + steps: + - name: Checkout repository + uses: actions/checkout@v2 + + - name: Set up JDK 11 + uses: actions/setup-java@v2 + with: + distribution: 'adopt' + java-version: '11' + + - name: Grant execute permission for gradlew + run: chmod +x gradlew + + - name: Compile + run: ./gradlew assemble + + test: + + runs-on: ubuntu-latest + + needs: compile + + steps: + - name: Checkout repository + uses: actions/checkout@v2 + + - name: Set up JDK 11 + uses: actions/setup-java@v2 + with: + distribution: 'adopt' + java-version: '11' + + - name: Grant execute permission for gradlew + run: chmod +x gradlew + + - name: Run jvmTest + run: ./gradlew jvmTest