From 4e11801ef0504f86773f475b3404d46e4a2eeecc Mon Sep 17 00:00:00 2001 From: Andritchii Andreea Date: Tue, 24 Mar 2026 16:01:33 +0200 Subject: [PATCH] Add GitHub Actions workflow for automated testing --- .github/workflows/ci-cd.yml | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 .github/workflows/ci-cd.yml diff --git a/.github/workflows/ci-cd.yml b/.github/workflows/ci-cd.yml new file mode 100644 index 0000000..477bab8 --- /dev/null +++ b/.github/workflows/ci-cd.yml @@ -0,0 +1,32 @@ +name: Ticket Tracker CI + +on: + push: + branches: [ main, develop, add-github-actions ] + pull_request: + branches: [ main ] + +jobs: + build: + runs-on: ubuntu-latest + + steps: + - name: Checkout repository + uses: actions/checkout@v4 + + - name: Set up JDK + uses: actions/setup-java@v4 + with: + java-version: '17' + distribution: 'temurin' + cache: 'maven' + + - name: Build and Test with Maven + run: mvn clean verify + + - name: Upload reports + if: failure() + uses: actions/upload-artifact@v4 + with: + name: junit-reports + path: "**/target/surefire-reports/*.xml" \ No newline at end of file