From e32d3e9a5086f36e3f43a6c8a37fe418f1a5069a Mon Sep 17 00:00:00 2001 From: Keuin Date: Sat, 17 Sep 2022 17:38:49 +0800 Subject: Run test with GitHub actions when pushing or receiving pull requests. --- .github/workflows/run-tests.yml | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 .github/workflows/run-tests.yml diff --git a/.github/workflows/run-tests.yml b/.github/workflows/run-tests.yml new file mode 100644 index 0000000..5795379 --- /dev/null +++ b/.github/workflows/run-tests.yml @@ -0,0 +1,23 @@ +name: build-and-test + +on: [ push, pull_request ] + +jobs: + build: + runs-on: windows-latest + steps: + - name: Checkout code + uses: actions/checkout@v3 + - name: Set up JDK + uses: actions/setup-java@v3 + with: + java-version: '15' + distribution: 'adopt' + - name: Validate Gradle wrapper + uses: gradle/wrapper-validation-action@v1 + - name: Setup Gradle + uses: gradle/gradle-build-action@v2 + - name: Gradle build + run: ./gradlew build + - name: Gradle test + run: ./gradlew test -- cgit v1.2.3