Skip to content
This repository has been archived by the owner on Jun 6, 2024. It is now read-only.

Commit

Permalink
Update workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
d22 committed Jan 3, 2024
1 parent 04404d1 commit 2dedbd7
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 39 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/ci-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
35 changes: 4 additions & 31 deletions .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
@@ -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:
Expand All @@ -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:
Expand All @@ -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
Expand All @@ -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
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/docker-build-push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand All @@ -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
Expand Down

0 comments on commit 2dedbd7

Please sign in to comment.