diff options
author | Keuin <[email protected]> | 2022-09-17 17:38:49 +0800 |
---|---|---|
committer | Keuin <[email protected]> | 2022-09-20 22:00:17 +0800 |
commit | 26428b148a8759c90c9b1b9e642af01fd5571f86 (patch) | |
tree | 5b5210f6206ce2fa2f6c0f7d0954650e6b4ef114 /.github/workflows | |
parent | e9dcb9f5f83afc994aeb19b5f987be82c2c5929b (diff) |
Run test with GitHub actions when pushing or receiving pull requests.add-github-action-for-testing
Diffstat (limited to '.github/workflows')
-rw-r--r-- | .github/workflows/run-tests.yml | 23 |
1 files changed, 23 insertions, 0 deletions
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 |