Skip to content

Commit

Permalink
#519: Allow customizing dependency workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
kaklakariada committed Apr 3, 2024
1 parent ac137ae commit 7100de4
Show file tree
Hide file tree
Showing 13 changed files with 288 additions and 119 deletions.
2 changes: 2 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,5 @@ doc/images/.svg linguist-generated=true
.github/workflows/broken_links_checker.yml linguist-generated=true
.github/workflows/ci-build.yml linguist-generated=true
.github/workflows/release.yml linguist-generated=true
.github/workflows/dependencies_check.yml linguist-generated=true
.github/workflows/dependencies_update.yml linguist-generated=true
81 changes: 49 additions & 32 deletions .github/workflows/dependencies_check.yml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

136 changes: 74 additions & 62 deletions .github/workflows/dependencies_update.yml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

31 changes: 28 additions & 3 deletions .project-keeper.yml
Original file line number Diff line number Diff line change
Expand Up @@ -74,9 +74,6 @@ excludes:
- regex: "W-PK-CORE-151: Pom file .* contains no reference to project-keeper-maven-plugin."
# PK already uses Java 17 for building
- "E-PK-CORE-17: Missing required file: '.github/workflows/ci-build-next-java.yml'"
# Workflows must install PK itself before using it in the build
- "E-PK-CORE-18: Outdated content: '.github/workflows/dependencies_check.yml'"
- "E-PK-CORE-18: Outdated content: '.github/workflows/dependencies_update.yml'"
# No configuration necessary for aggregator POM
- "E-PK-CORE-103: Missing parent declaration in 'pom.xml'"
- "E-PK-CORE-17: Missing required file: 'pk_generated_parent.pom'"
Expand Down Expand Up @@ -123,3 +120,31 @@ build:
name: Run project-keeper itself
id: build-pk-verify
run: mvn --batch-mode com.exasol:project-keeper-maven-plugin:verify --projects .

# [itest->dsn~customize-build-process.dependency-check~0]
- name: "dependencies_check.yml"
stepCustomizations:
- action: INSERT_AFTER
stepId: setup-jdks
content:
name: Install Project Keeper
id: install-project-keeper
# This fixes https://github.com/exasol/project-keeper/issues/330
run: |
mvn --batch-mode --threads 1C install -DskipTests \
-Dproject-keeper.skip=true -Dossindex.skip=true -Dmaven.javadoc.skip=true \
-Djacoco.skip=true -Derror-code-crawler.skip=true -Dreproducible.skip=true
# [itest->dsn~customize-build-process.dependency-update~0]
- name: "dependencies_update.yml"
stepCustomizations:
- action: INSERT_AFTER
stepId: check-branch
content:
name: Install Project Keeper
id: install-project-keeper
# This fixes https://github.com/exasol/project-keeper/issues/330
run: |
mvn --batch-mode --threads 1C install -DskipTests \
-Dproject-keeper.skip=true -Dossindex.skip=true -Dmaven.javadoc.skip=true \
-Djacoco.skip=true -Derror-code-crawler.skip=true -Dreproducible.skip=true
Loading

0 comments on commit 7100de4

Please sign in to comment.