Skip to content

Commit

Permalink
[BRMO-370] Update Maven runtime, drop windows CI workflow (#2237)
Browse files Browse the repository at this point in the history
* [BRMO-370] verwijder Windows CI workflow

* [BRMO-370] Update Maven versie in workflows naar 3.9.9

* Voeg een workflow toe om Maven plugin updates automatisch te mergen
  • Loading branch information
mprins authored Sep 5, 2024
1 parent 00c7e63 commit b8fe993
Show file tree
Hide file tree
Showing 10 changed files with 54 additions and 95 deletions.
14 changes: 0 additions & 14 deletions .github/workflows/cleanup_and_maintainance.yml
Original file line number Diff line number Diff line change
Expand Up @@ -102,20 +102,6 @@ jobs:
prune-untagged: true


# workflows:
# runs-on: ubuntu-latest
# name: "Cleanup old workflow runs"
# steps:
# - name: Delete workflow runs
# uses: Mattraks/delete-workflow-runs@v2
# with:
# token: ${{ github.token }}
# repository: ${{ github.repository }}
# retain_days: 60
# keep_minimum_runs: 0
# delete_workflow_pattern: 'all'


otherworkflows:
runs-on: ubuntu-latest
name: "Cleanup all old workflow runs"
Expand Down
5 changes: 4 additions & 1 deletion .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@ on:
schedule:
- cron: '0 22 * * 6'

env:
MAVEN_VERSION: '3.9.9'

jobs:
analyze:
name: 'Analyze'
Expand Down Expand Up @@ -60,7 +63,7 @@ jobs:
- name: 'Set up Maven'
uses: stCarolas/setup-maven@v5
with:
maven-version: '3.9.8'
maven-version: ${{ env.MAVEN_VERSION }}

- name: 'Build'
run: |
Expand Down
23 changes: 23 additions & 0 deletions .github/workflows/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: 'Dependabot auto-merge'
on: pull_request

permissions:
contents: write
pull-requests: write

jobs:
dependabot:
runs-on: ubuntu-latest
if: github.event.pull_request.user.login == 'dependabot[bot]' && github.repository == 'B3Partners/brmo'
steps:
- name: 'Dependabot metadata'
id: metadata
uses: dependabot/fetch-metadata@v2
with:
github-token: "${{ secrets.GITHUB_TOKEN }}"
- name: 'Enable auto-merge for Dependabot PRs on Maven plugins'
if: contains(steps.metadata.outputs.dependency-names, 'maven-') && steps.metadata.outputs.update-type == 'version-update:semver-patch'
run: gh pr merge --auto --merge "$PR_URL"
env:
PR_URL: ${{github.event.pull_request.html_url}}
GH_TOKEN: ${{secrets.GITHUB_TOKEN}}
3 changes: 2 additions & 1 deletion .github/workflows/linux-oracle.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ concurrency: # cancel on PR pushes

env:
MAVEN_OPTS: -Djava.awt.headless=true -Xms8G -Xmx12G -Dmaven.wagon.httpconnectionManager.ttlSeconds=25 -Dmaven.wagon.http.retryHandler.count=3 -Dtest.persistence.unit=brmo.persistence.oracle -Djava.security.egd=file:/dev/./urandom
MAVEN_VERSION: '3.9.9'

jobs:
build:
Expand Down Expand Up @@ -48,7 +49,7 @@ jobs:
- name: 'Set up Maven'
uses: stCarolas/setup-maven@v5
with:
maven-version: '3.9.8'
maven-version: ${{ env.MAVEN_VERSION }}

- name: 'Install extra software'
run: sudo apt install -y --no-install-recommends xmlstarlet
Expand Down
21 changes: 11 additions & 10 deletions .github/workflows/linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ env:
PGPASSWORD: postgres
PGUSER: postgres
PGDATABASE: postgres
MAVEN_VERSION: '3.9.9'

jobs:
build:
Expand All @@ -28,11 +29,11 @@ jobs:
java-dist: [ 'temurin' ]
# docker image tags from https://hub.docker.com/r/postgis/postgis/tags?page=1&ordering=last_updated
# zie ook https://www.postgresql.org/support/versioning/
postgis:
# t/m november 2024
- 12-3.4-alpine
- 15-3.4-alpine
- 16-3.4-alpine
postgis:
# t/m november 2024
- 12-3.4-alpine
- 15-3.4-alpine
- 16-3.4-alpine
include:
- java: 21
java-dist: 'temurin'
Expand Down Expand Up @@ -61,7 +62,7 @@ jobs:
- name: 'Set up Maven'
uses: stCarolas/setup-maven@v5
with:
maven-version: '3.9.8'
maven-version: ${{ env.MAVEN_VERSION }}

- name: 'Install extra software'
run: sudo apt install -y --no-install-recommends xmlstarlet
Expand Down Expand Up @@ -144,7 +145,7 @@ jobs:
- name: 'Set up Maven'
uses: stCarolas/setup-maven@v5
with:
maven-version: '3.9.8'
maven-version: ${{ env.MAVEN_VERSION }}

- name: 'Javadoc'
run: mvn compile javadoc:javadoc -DskipQA=true
Expand Down Expand Up @@ -189,7 +190,7 @@ jobs:
- name: 'Set up Maven'
uses: stCarolas/setup-maven@v5
with:
maven-version: '3.9.8'
maven-version: ${{ env.MAVEN_VERSION }}

- name: 'QA build with Maven'
run: mvn -B -V -fae -DskipQA=false -Dfmt.action=check -Dpom.fmt.action=verify -Ddocker.skip=true -Dtest.onlyITs= -Dmaven.test.skip=true clean package
Expand All @@ -198,7 +199,7 @@ jobs:
deploy:
name: 'Deploy docker images'
if: ${{ github.repository == 'B3Partners/brmo' && github.ref == 'refs/heads/master' && github.event_name == 'push' }}
needs: [build, qacheck]
needs: [ build, qacheck ]
runs-on: ubuntu-22.04
permissions:
contents: read
Expand All @@ -221,7 +222,7 @@ jobs:
- name: 'Set up Maven'
uses: stCarolas/setup-maven@v5
with:
maven-version: '3.9.8'
maven-version: ${{ env.MAVEN_VERSION }}

- name: 'Build and Push docker images'
env:
Expand Down
5 changes: 4 additions & 1 deletion .github/workflows/owasp-dependency-check.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
name: 'OWASP dependency check'

env:
MAVEN_VERSION: '3.9.9'

on:
pull_request:
workflow_dispatch:
Expand All @@ -23,7 +26,7 @@ jobs:
- name: 'Set up Maven'
uses: stCarolas/setup-maven@v5
with:
maven-version: '3.9.8'
maven-version: ${{ env.MAVEN_VERSION }}

- name: 'Run Check'
continue-on-error: true
Expand Down
5 changes: 4 additions & 1 deletion .github/workflows/trivy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ on:
- cron: "17 23 * * 0"
workflow_dispatch:

env:
MAVEN_VERSION: '3.9.9'

jobs:
build:
name: "Trivy Scan ${{ matrix.docker-image }}"
Expand Down Expand Up @@ -33,7 +36,7 @@ jobs:
- name: 'Set up Maven'
uses: stCarolas/setup-maven@v5
with:
maven-version: '3.9.8'
maven-version: ${{ env.MAVEN_VERSION }}

- name: "Build Java ${{ matrix.java }}"
run: mvn -U package -Dmaven.test.skip=true -Ddocker.skip=true -Dtest.onlyITs= -DskipQA=true -Dmaven.javadoc.skip=true
Expand Down
7 changes: 4 additions & 3 deletions .github/workflows/upgrade-oracle.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ name: Oracle Database Upgrade

on:
push:
branches:
- 'master'
branches:
- 'master'
pull_request:

concurrency: # cancel on PR pushes
Expand All @@ -13,6 +13,7 @@ concurrency: # cancel on PR pushes

env:
MAVEN_OPTS: -Djava.awt.headless=true -Xms8G -Xmx12G -Dmaven.wagon.httpconnectionManager.ttlSeconds=25 -Dmaven.wagon.http.retryHandler.count=3 -Dtest.persistence.unit=brmo.persistence.oracle
MAVEN_VERSION: '3.9.9'

jobs:
build:
Expand Down Expand Up @@ -42,7 +43,7 @@ jobs:
- name: 'Set up Maven'
uses: stCarolas/setup-maven@v5
with:
maven-version: '3.9.8'
maven-version: ${{ env.MAVEN_VERSION }}

- name: 'datamodel Priming build'
run: |
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/upgrade-pgsql.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ env:
PGPASSWORD: postgres
PGUSER: postgres
PGDATABASE: postgres
MAVEN_VERSION: '3.9.9'

jobs:
build:
Expand Down Expand Up @@ -59,7 +60,7 @@ jobs:
- name: 'Set up Maven'
uses: stCarolas/setup-maven@v5
with:
maven-version: '3.9.8'
maven-version: ${{ env.MAVEN_VERSION }}

- name: 'datamodel Priming build'
run: mvn clean install -Dmaven.test.skip=true -Ddocker.skip=true -Dtest.onlyITs= -B -V -fae -pl 'datamodel' -am -DskipQA=true
Expand Down
63 changes: 0 additions & 63 deletions .github/workflows/windows.yml

This file was deleted.

0 comments on commit b8fe993

Please sign in to comment.