chore(deps): update dependency gradle to v8 #206
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Building and testing with gradle | |
on: [ push ] | |
jobs: | |
build-and-test: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Setup JDK 18 used by gradle | |
uses: actions/setup-java@v3 | |
with: | |
distribution: temurin | |
java-version: 18 | |
- uses: gradle/gradle-build-action@v2 | |
- name: Build with gradle | |
run: gradle build -x test | |
- name: Test with gradle | |
run: gradle test | |
- name: Prepare test run | |
run: | | |
mkdir -p test_plugin/run | |
echo "eula=true" > test_plugin/run/eula.txt | |
- name: Run Test Server | |
run: MICRONAUT_ENVIRONMENTS=shutdown gradle runServer | |
- name: Assert Plugin load | |
run: grep -F '[MayflowerTestPlugin] Works, wuhu!' < test_plugin/run/logs/latest.log |