diff --git a/.github/workflows/ci-test.yml b/.github/workflows/ci-test.yml index a1bbca8..9f2396c 100644 --- a/.github/workflows/ci-test.yml +++ b/.github/workflows/ci-test.yml @@ -11,15 +11,15 @@ jobs: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 - - name: Set up JDK 17 - uses: actions/setup-java@v3 + - uses: actions/checkout@v4 + - name: Set up JDK + uses: actions/setup-java@v4 with: java-version: "17" distribution: "temurin" cache: maven - name: Build/Test with Maven - run: ./mvnw test -Pjar + run: ./mvnw --batch-mode --errors --show-version --no-transfer-progress --strict-checksums clean test -Pjar # Optional: Uploads the full dependency graph to GitHub to improve the quality of Dependabot alerts this repository can receive - name: Update dependency graph diff --git a/.github/workflows/codeql.yml b/.github/workflows/codeql.yml index dc6b6ad..5ba859b 100644 --- a/.github/workflows/codeql.yml +++ b/.github/workflows/codeql.yml @@ -1,14 +1,3 @@ -# For most projects, this workflow file will not need changing; you simply need -# to commit it to your repository. -# -# You may wish to alter this file to override the set of languages analyzed, -# or to provide custom queries or build logic. -# -# ******** NOTE ******** -# We have attempted to detect the languages in your repository. Please check -# the `language` matrix defined below to confirm you have the correct set of -# supported CodeQL languages. -# name: "CodeQL" on: @@ -17,7 +6,7 @@ on: pull_request: branches: [ "main" ] schedule: - - cron: '44 0 * * 3' + - cron: '44 0 * * 3' # at 00:44 on wednesday jobs: analyze: @@ -38,10 +27,6 @@ jobs: fail-fast: false matrix: language: [ 'java-kotlin' ] - # CodeQL supports [ 'c-cpp', 'csharp', 'go', 'java-kotlin', 'javascript-typescript', 'python', 'ruby', 'swift' ] - # Use only 'java-kotlin' to analyze code written in Java, Kotlin or both - # Use only 'javascript-typescript' to analyze code written in JavaScript, TypeScript or both - # Learn more about CodeQL language support at https://aka.ms/codeql-docs/language-support steps: - name: Checkout repository @@ -59,27 +44,15 @@ jobs: # For more details on CodeQL's query packs, refer to: https://docs.github.com/en/code-security/code-scanning/automatically-scanning-your-code-for-vulnerabilities-and-errors/configuring-code-scanning#using-queries-in-ql-packs # queries: security-extended,security-and-quality - - # Autobuild attempts to build any compiled languages (C/C++, C#, Go, Java, or Swift). - # If this step fails, then you should remove it and run the build manually (see below) - # - name: Autobuild - # uses: github/codeql-action/autobuild@v3 - - # ℹī¸ Command-line programs to run using the OS shell. - # 📚 See https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstepsrun - - # If the Autobuild fails above, remove it and uncomment the following three lines. - # modify them (or add more) to build your code if your project, please refer to the EXAMPLE below for guidance. - - - name: Set up JDK 17 - uses: actions/setup-java@v3 + - name: Set up JDK + uses: actions/setup-java@v4 with: java-version: "17" distribution: "temurin" cache: maven - run: | echo "Run, Build Application using script" - ./mvnw package -Pjar + ./mvnw --batch-mode --errors --show-version --no-transfer-progress --strict-checksums -DskipTests package -Pjar - name: Perform CodeQL Analysis uses: github/codeql-action/analyze@v3 diff --git a/.github/workflows/docker-build-push.yml b/.github/workflows/docker-build-push.yml index 61af911..2d77b42 100644 --- a/.github/workflows/docker-build-push.yml +++ b/.github/workflows/docker-build-push.yml @@ -12,9 +12,9 @@ jobs: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 - - name: Set up JDK 17 - uses: actions/setup-java@v3 + - uses: actions/checkout@v4 + - name: Set up JDK + uses: actions/setup-java@v4 with: java-version: "17" distribution: "temurin" @@ -23,7 +23,7 @@ jobs: run: | export REGISTRY_USERNAME=${{ github.actor }} export REGISTRY_PASSWORD=${{ secrets.GITHUB_TOKEN }} - ./mvnw deploy + ./mvnw --batch-mode --errors --show-version --no-transfer-progress --strict-checksums deploy - name: Set Release version env variable run: | echo "RELEASE_VERSION=v$(mvn help:evaluate -Dexpression=project.version -q -DforceStdout)" >> $GITHUB_ENV