mirror of
https://github.com/actions/setup-java.git
synced 2025-03-30 23:00:11 +08:00
action.yml
This commit is contained in:
parent
b8ebb8ba1d
commit
bba2d13db5
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