mirror of
https://github.com/actions/setup-java.git
synced 2025-03-30 23:00:11 +08:00
Merge bba2d13db50e427323b3c6bc057ff46896aaf9a8 into 3b6c050358614dd082e53cdbc55580431fc4e437
This commit is contained in:
commit
efd7514f93
22
action.yml
22
action.yml
@ -84,3 +84,25 @@ runs:
|
||||
using: 'node20'
|
||||
main: 'dist/setup/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…
x
Reference in New Issue
Block a user