From f02a76f0c375f2474420b16bf011f8bbfb316c14 Mon Sep 17 00:00:00 2001 From: Tsimafei Mialeshka Date: Thu, 2 May 2024 18:39:55 +0300 Subject: [PATCH] Update maven.xml --- .github/workflows/ant.yml | 20 -------------------- .github/workflows/maven.yml | 21 +++++++++++++++++++++ 2 files changed, 21 insertions(+), 20 deletions(-) delete mode 100644 .github/workflows/ant.yml create mode 100644 .github/workflows/maven.yml diff --git a/.github/workflows/ant.yml b/.github/workflows/ant.yml deleted file mode 100644 index 3e1fda8..0000000 --- a/.github/workflows/ant.yml +++ /dev/null @@ -1,20 +0,0 @@ -name: Java CI - -on: - pull_request: - branches: [ "main" ] - -jobs: - build: - - runs-on: ubuntu-latest - - steps: - - uses: actions/checkout@v4 - - name: Set up JDK 11 - uses: actions/setup-java@v3 - with: - java-version: '11' - distribution: 'temurin' - - name: Build with Ant - run: ant -noinput -buildfile build.xml diff --git a/.github/workflows/maven.yml b/.github/workflows/maven.yml new file mode 100644 index 0000000..abdc497 --- /dev/null +++ b/.github/workflows/maven.yml @@ -0,0 +1,21 @@ +name: Java CI with Maven + +on: + pull_request: + branches: [ "main" ] + +jobs: + build: + + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v4 + - name: Set up JDK 17 + uses: actions/setup-java@v3 + with: + java-version: '17' + distribution: 'temurin' + cache: maven + - name: Build with Maven + run: mvn -B package --file pom.xml \ No newline at end of file