mirror of
https://github.com/actions/setup-java.git
synced 2026-07-06 12:35:48 +00:00
Compare commits
2 Commits
2254473fda
...
efd7514f93
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
efd7514f93 | ||
|
|
bba2d13db5 |
22
action.yml
22
action.yml
@ -84,3 +84,25 @@ runs:
|
|||||||
using: 'node20'
|
using: 'node20'
|
||||||
main: 'dist/setup/index.js'
|
main: 'dist/setup/index.js'
|
||||||
post: 'dist/cleanup/index.js'
|
post: 'dist/cleanup/index.js'
|
||||||
|
name: 'Build and Test Java Project'
|
||||||
|
on: [push, pull_request]
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
build:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: Checkout code
|
||||||
|
uses: actions/checkout@v2
|
||||||
|
|
||||||
|
- name: Set up JDK 11
|
||||||
|
uses: actions/setup-java@v2
|
||||||
|
with:
|
||||||
|
java-version: '11'
|
||||||
|
distribution: 'adopt'
|
||||||
|
|
||||||
|
- name: Build with Gradle
|
||||||
|
run: ./gradlew build
|
||||||
|
|
||||||
|
- name: Run tests
|
||||||
|
run: ./gradlew test
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user