From cf49b0271b0b541357d69ef027a88e270f070f28 Mon Sep 17 00:00:00 2001 From: Lauro Correia Silveira Date: Wed, 25 Oct 2023 19:25:41 +0200 Subject: [PATCH] Added GitHub Actions - Added Jacoco report GitHub Action - Added Maven compile and run test Github Action --- .github/dependabot.yml | 11 +++++++++++ .github/workflows/ci.yml | 24 ++++++++++++++++++++++++ 2 files changed, 35 insertions(+) create mode 100644 .github/dependabot.yml create mode 100644 .github/workflows/ci.yml diff --git a/.github/dependabot.yml b/.github/dependabot.yml new file mode 100644 index 0000000..7770c44 --- /dev/null +++ b/.github/dependabot.yml @@ -0,0 +1,11 @@ +version: 2 +updates: + - package-ecosystem: "maven" + directory: "/" + schedule: + interval: "daily" + + - package-ecosystem: "docker" + directory: "/" + schedule: + interval: "daily" diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..02f98f4 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,24 @@ +name: CI Workflow +run-name: ${{ github.actor }} has started workflow +on: + push: + branches: [ "main" ] + pull_request: + branches: [ "main" ] + +jobs: + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + ## Set up to use JDK 17 + - name: Set up JDK 17 + uses: actions/setup-java@v3 + with: + java-version: '17' + distribution: 'temurin' + cache: maven + + ## Build and execute every test + - name: Build and test with Maven + run: mvn -B package --file pom.xml \ No newline at end of file