Update dependency gradle to v8.10.1 #707
Workflow file for this run
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: CI Test | |
on: [pull_request] | |
jobs: | |
check_files: | |
name: Check files to run test | |
runs-on: ubuntu-latest | |
outputs: | |
shouldRunTest: ${{ steps.shouldRunTest.outputs.shouldRunTest }} | |
steps: | |
- name: Check out the repo | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: Check should run test | |
id: shouldRunTest | |
run: | | |
git diff --name-only "$BASE_SHA" | |
TEST_TARGET_FILE_COUNT="$(git diff --name-only "$BASE_SHA" | grep -cvE '^.github|^infra|README.md')" || true | |
echo "TEST_TARGET_FILE_COUNT=${TEST_TARGET_FILE_COUNT}" | |
if [ "${TEST_TARGET_FILE_COUNT}" -eq 0 ]; then | |
echo "{shouldRunTest}={false}" >> "$GITHUB_OUTPUT" | |
else | |
echo "{shouldRunTest}={true}" >> "$GITHUB_OUTPUT" | |
fi | |
env: | |
BASE_SHA: ${{ github.event.pull_request.base.sha }} | |
run_test: | |
name: Run Test | |
runs-on: ubuntu-latest | |
needs: | |
- check_files | |
if: ${{ needs.check_files.outputs.shouldRunTest == 'true' }} | |
steps: | |
- name: Show shouldRunTest | |
run: | | |
echo "shouldRunTest=${{ needs.check_files.outputs.shouldRunTest }}" | |
- name: Check out the repo | |
uses: actions/checkout@v4 | |
# https://github.com/actions/setup-java | |
- uses: actions/setup-java@v4 | |
with: | |
distribution: 'adopt' | |
java-version: '11' | |
- name: Prepare env | |
run: | | |
mv .ci.env .env | |
mv .ci.db-env .db-env | |
- name: Run Server | |
run: sh scripts/run-on-docker.sh | |
- name: Run Test | |
run: ./gradlew test |