diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml new file mode 100644 index 0000000..1ae641a --- /dev/null +++ b/.github/workflows/main.yml @@ -0,0 +1,29 @@ +name: Java CI + +on: + push: + branches: + - main + pull_request: + branches: + - main + +jobs: + build: + runs-on: ubuntu-latest + + steps: + - name: Check out the repository + uses: actions/checkout@v3 + + - name: Set up JDK 17 + uses: actions/setup-java@v3 + with: + java-version: '17' + distribution: 'temurin' + + - name: Install Ant + run: sudo apt-get install -y ant + + - name: Build with Ant + run: ant -f proyecto/java_microservice/build.xml