-
-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge tag '4.2.6' into georchestra-gn4.2.x-rebase
- Loading branch information
Showing
2,325 changed files
with
126,401 additions
and
74,152 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
# 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" # See documentation for possible values | ||
directory: "/" # Location of package manifests | ||
schedule: | ||
interval: "daily" | ||
- package-ecosystem: "github-actions" # See documentation for possible values | ||
directory: "/" # Location of package manifests | ||
schedule: | ||
interval: "daily" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,67 @@ | ||
name: Linux GitHub CI | ||
|
||
on: [pull_request,push,workflow_dispatch] | ||
|
||
env: | ||
MAVEN_OPTS: -Dmaven.wagon.httpconnectionManager.ttlSeconds=25 -Dmaven.wagon.http.retryHandler.count=3 -Xmx512m -Dorg.slf4j.simpleLogger.showDateTime=true -Dorg.slf4j.simpleLogger.dateTimeFormat=HH:mm:ss,SSS | ||
TAKARI_SMART_BUILDER_VERSION: 0.6.1 | ||
|
||
jobs: | ||
build: | ||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
matrix: | ||
include: | ||
- os: ubuntu-22.04 | ||
jdk: 8 | ||
steps: | ||
- uses: actions/checkout@v4 | ||
with: | ||
# 500 commits, set to 0 to get all | ||
fetch-depth: 500 | ||
submodules: 'recursive' | ||
show-progress: 'false' | ||
- name: Set up JDK | ||
uses: actions/[email protected] | ||
with: | ||
distribution: 'temurin' | ||
java-version: ${{ matrix.jdk }} | ||
cache: 'maven' | ||
- name: Build with Maven | ||
run: mvn -B -V install -DskipTests=true -Dmaven.javadoc.skip=true | ||
- name: Remove SNAPSHOT jars from repository | ||
run: | | ||
find ~/.m2/repository -name "*SNAPSHOT*" -type d | xargs rm -rf {} | ||
- name: Remove Schema 3.8 jars from repository | ||
run: | | ||
find ~/.m2/repository -name "*3.8*" -type d | xargs rm -rf {} | ||
QA: | ||
runs-on: ubuntu-22.04 | ||
steps: | ||
- uses: actions/checkout@v4 | ||
with: | ||
# 500 commits, set to 0 to get all | ||
fetch-depth: 500 | ||
submodules: 'recursive' | ||
show-progress: 'false' | ||
- name: Set up JDK | ||
uses: actions/[email protected] | ||
with: | ||
distribution: 'temurin' | ||
java-version: 8 | ||
cache: 'maven' | ||
- name: Set up Maven | ||
uses: stCarolas/setup-maven@v4 | ||
with: | ||
maven-version: 3.6.3 | ||
- name: Test with maven | ||
run: | | ||
mvn resources:resources@copy-index-schema-to-source -f web | ||
mvn -B -V -fae verify -Pit | ||
- name: Remove SNAPSHOT jars from repository | ||
run: | | ||
find ~/.m2/repository -name "*SNAPSHOT*" -type d | xargs rm -rf {} | ||
- name: Remove Schema 3.8 jars from repository | ||
run: | | ||
find ~/.m2/repository -name "*3.8*" -type d | xargs rm -rf {} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
# This job sends the maven dependency tree of the project to Github | ||
# for further security analysis. | ||
|
||
name: "MavenDepTreeSubmission" | ||
|
||
on: | ||
push: | ||
branches: [ 4.2.x ] | ||
schedule: | ||
- cron: '44 22 * * 5' | ||
|
||
jobs: | ||
update-maven-dep-tree: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v4 | ||
with: | ||
show-progress: 'false' | ||
|
||
- name: Setup Java JDK | ||
uses: actions/[email protected] | ||
with: | ||
java-version: 8 | ||
# Java distribution. See the list of supported distributions in README file | ||
distribution: temurin | ||
# The package type (jdk, jre, jdk+fx, jre+fx) | ||
java-package: jdk | ||
cache: maven | ||
|
||
- name: Submit Dependency Snapshot | ||
uses: advanced-security/maven-dependency-submission-action@v3 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
name: SonarCloud QA | ||
on: | ||
push: | ||
branches: | ||
- 4.2.x | ||
pull_request: | ||
types: [opened, synchronize, reopened] | ||
jobs: | ||
build: | ||
name: Build | ||
runs-on: ubuntu-latest | ||
# Only analyze with Sonar on non-fork repos: | ||
# https://github.community/t/how-to-detect-a-pull-request-from-a-fork/18363/4 | ||
if: github.event.pull_request.head.repo.fork != true | ||
steps: | ||
- uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis | ||
submodules: 'recursive' | ||
show-progress: 'false' | ||
# For building GeoNetwork, JDK8 is necessary, but for running | ||
# the SonarQube plugin, JDK11 is necessary. | ||
# So, first install JDK 8, build GeoNetwork, then install JDK11 | ||
# and run SonarQube: | ||
- name: Set up JDK 8 | ||
uses: actions/[email protected] | ||
with: | ||
java-version: 8 | ||
distribution: 'temurin' | ||
cache: 'maven' | ||
- name: Cache SonarCloud packages | ||
uses: actions/cache@v3 | ||
with: | ||
path: ~/.sonar/cache | ||
key: ${{ runner.os }}-sonar | ||
restore-keys: ${{ runner.os }}-sonar | ||
- name: Build GN | ||
run: mvn -B package -DskipTests | ||
- name: Set up JDK 11 | ||
uses: actions/[email protected] | ||
with: | ||
distribution: 'temurin' | ||
java-version: '11' | ||
- name: Analyze with Sonar | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Needed to get PR information, if any | ||
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} | ||
#TODO: Enable tests, if reliable: | ||
run: mvn -B org.sonarsource.scanner.maven:sonar-maven-plugin:sonar -Dsonar.projectKey=geonetwork_core-geonetwork -Dsonar.organization=geonetwork -DskipTests=true -Dmaven.javadoc.skip=true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.