-
Notifications
You must be signed in to change notification settings - Fork 0
30 lines (25 loc) · 822 Bytes
/
ant.yml
File metadata and controls
30 lines (25 loc) · 822 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
# This workflow will build a Java project with Ant
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-java-with-ant
name: Java CI
on:
push:
branches: [ "main" ]
pull_request_target:
types: [opened, reopened, converted_to_draft, ready_for_review, synchronize, edited, review_requested, closed]
pull_request:
types: [opened, synchronize, reopened, closed]
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout PR code
uses: actions/checkout@v4
with:
ref: ${{ github.event.pull_request.head.sha }}
- name: Set up JDK 11
uses: actions/setup-java@v4
with:
java-version: '11'
distribution: 'temurin'
- name: Build with Ant
run: ant -noinput -buildfile build.xml