From 15fcafe1e4e5f67a129126e53eb0cf984097dfe1 Mon Sep 17 00:00:00 2001 From: nishad-aliaqua <141119129+nishad-aliaqua@users.noreply.github.com> Date: Thu, 29 Aug 2024 10:00:09 +0530 Subject: [PATCH] Create action-branch-protection-test.yml --- .../action-branch-protection-test.yml | 25 +++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 .github/workflows/action-branch-protection-test.yml diff --git a/.github/workflows/action-branch-protection-test.yml b/.github/workflows/action-branch-protection-test.yml new file mode 100644 index 0000000..06fc807 --- /dev/null +++ b/.github/workflows/action-branch-protection-test.yml @@ -0,0 +1,25 @@ +# 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: + branches: [ "main" ] + +jobs: + build: + + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v4 + - 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