action-demo/.gitea/workflows/test-java.yml
huanghs 9db4e05562
Some checks failed
Gitea Actions Demo / build-docker (push) Waiting to run
Cache Npx / task (push) Waiting to run
Gitea Actions Demo / setup (push) Failing after 52s
Gitea Actions Demo / test (push) Has been skipped
Gitea Actions Demo / build (push) Has been skipped
Test Java / build-image (push) Successful in 12s
更新 .gitea/workflows/test-java.yml
2024-11-18 11:48:28 +08:00

35 lines
679 B
YAML

name: Test Java
on:
push:
jobs:
build-image:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 1
- name: Cache Gradle Wrapper
uses: actions/cache@v3
with:
path: ${{ env.RUNNER_TOOL_CACHE }}
key: ${{ runner.os }}-${{ env.RUNNER_TOOL_CACHE }}
- name: Run
run: |
echo ${{ env.RUNNER_TOOL_CACHE }}
ls /
- name: Setup Java
uses: actions/setup-java@v4
with:
distribution: zulu
java-version: 17
cache: gradle
- name: Run
run: |
java --version