Skip to content

Commit

Permalink
Add fast compilation and jvmTest check for PRs
Browse files Browse the repository at this point in the history
  • Loading branch information
e5l authored May 17, 2024
1 parent 0567a43 commit 2cd6333
Showing 1 changed file with 49 additions and 0 deletions.
49 changes: 49 additions & 0 deletions .github/workflows/check-build.yml
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 2cd6333

Please sign in to comment.