diff --git a/.github/dependabot.yml b/.github/dependabot.yml deleted file mode 100644 index ea7ab958ac..0000000000 --- a/.github/dependabot.yml +++ /dev/null @@ -1,15 +0,0 @@ -# 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" diff --git a/.github/workflows/linux.yml b/.github/workflows/linux.yml deleted file mode 100644 index 6169b7de27..0000000000 --- a/.github/workflows/linux.yml +++ /dev/null @@ -1,67 +0,0 @@ -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/setup-java@v3.12.0 - 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/setup-java@v3.12.0 - 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 {} diff --git a/.github/workflows/mvn-dep-tree.yml b/.github/workflows/mvn-dep-tree.yml deleted file mode 100644 index 615c988543..0000000000 --- a/.github/workflows/mvn-dep-tree.yml +++ /dev/null @@ -1,33 +0,0 @@ -# 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/setup-java@v3.12.0 - 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 diff --git a/.github/workflows/sonarcloud.yml b/.github/workflows/sonarcloud.yml deleted file mode 100644 index ec28ac64e2..0000000000 --- a/.github/workflows/sonarcloud.yml +++ /dev/null @@ -1,49 +0,0 @@ -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/setup-java@v3.12.0 - 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/setup-java@v3.12.0 - 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