From fcf79ff0bea9f05ac7c812b42c06c0b161ef2d12 Mon Sep 17 00:00:00 2001 From: Indah Juliani Date: Thu, 22 Aug 2024 11:49:01 +0200 Subject: [PATCH] ci: add workflows and dependabot --- .github/dependabot.yml | 12 ++++++++++++ .github/workflows/project.yml | 35 +++++++++++++++++++++++++++++++++++ 2 files changed, 47 insertions(+) create mode 100644 .github/dependabot.yml create mode 100644 .github/workflows/project.yml diff --git a/.github/dependabot.yml b/.github/dependabot.yml new file mode 100644 index 0000000..9c6dda2 --- /dev/null +++ b/.github/dependabot.yml @@ -0,0 +1,12 @@ +# To get started with Dependabot version updates, you'll need to specify which +# package ecosystems to update and where the package manifests are located. +# Please see the documentation for all configuration options: +# https://docs.github.com/github/administering-a-repository/configuration-options-for-dependency-updates + +version: 2 +updates: + - package-ecosystem: "maven" + directory: "/" + schedule: + interval: "weekly" + open-pull-requests-limit: 20 \ No newline at end of file diff --git a/.github/workflows/project.yml b/.github/workflows/project.yml new file mode 100644 index 0000000..08d295d --- /dev/null +++ b/.github/workflows/project.yml @@ -0,0 +1,35 @@ +name: Project CI + +on: + push: + branches: ['main'] + pull_request: + branches: ['main'] + +jobs: + build: + runs-on: ubuntu-latest + + strategy: + matrix: + java: ['11'] + + name: Java ${{ matrix.java }} + + steps: + - uses: actions/checkout@v3 + + - name: Set up JDK ${{ matrix.java }} + uses: actions/setup-java@v3 + with: + java-version: '${{ matrix.java }}' + distribution: 'temurin' + cache: maven + - name: Check license hearders + run: ./mvnw license:check + + - name: Check NOTICE + run: ./mvnw -B notice:check + + - name: Build backend + run: ./mvnw -B package --file pom.xml \ No newline at end of file