Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Generate CI build workflow #311

Merged
merged 1 commit into from
Apr 18, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .gitattributes
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
*.sh text eol=lf
.github/workflows/broken_links_checker.yml linguist-generated=true
.github/workflows/ci-build.yml linguist-generated=true
.github/workflows/dependencies_check.yml linguist-generated=true
.github/workflows/dependencies_update.yml linguist-generated=true
.github/workflows/release_droid_print_quick_checksum.yml linguist-generated=true
.github/workflows/release.yml linguist-generated=true
.settings/org.eclipse.jdt.core.prefs linguist-generated=true
.settings/org.eclipse.jdt.ui.prefs linguist-generated=true
Expand Down
179 changes: 128 additions & 51 deletions .github/workflows/ci-build.yml

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

48 changes: 41 additions & 7 deletions .project-keeper.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,19 +6,53 @@ sources:
- integration_tests
- type: npm
path: extension/package.json
artifacts:
- dist/cloud-storage-extension.js
version:
fromSource: pom.xml
linkReplacements:
excludes:
# Customization needed to build and release extension
- "W-PK-CORE-153: Project-keeper version 4.1.0 is outdated. Please update project-keeper to latest version 4.2.0."
- "E-PK-CORE-18: Outdated content: '.github/workflows/ci-build.yml'"
- "E-PK-CORE-18: Outdated content: '.github/workflows/ci-build-next-java.yml'"
- "E-PK-CORE-18: Outdated content: '.github/workflows/release_droid_upload_github_release_assets.yml'"
- "E-PK-CORE-18: Outdated content: '.github/workflows/release_droid_prepare_original_checksum.yml'"
- "E-PK-CORE-17: Missing required file: 'release_config.yml'"
build:
runnerOs: ubuntu-20.04
freeDiskSpace: false
freeDiskSpace: true
exasolDbVersions:
- "8.24.0"
- "7.1.25"
- "7.1.26"
workflows:
- name: ci-build.yml
stepCustomizations:
- action: INSERT_AFTER
stepId: enable-testcontainer-reuse
content:
name: Run scalafix linting
id: run-scalafix-linting
if: ${{ matrix.exasol_db_version == env.DEFAULT_EXASOL_DB_VERSION }}
run: mvn --batch-mode clean compile test-compile scalastyle:check scalafix:scalafix spotless:check
- action: INSERT_AFTER
stepId: run-scalafix-linting
content:
name: Build extension
id: build-extension
run: |
mvn --batch-mode package -DskipTests
cd extension
npm ci
npm run build
npm run test
npm run lint
- action: REPLACE
stepId: build-pk-verify
content:
name: Run tests and build with Maven
id: build-pk-verify
run: |
mvn --batch-mode verify \
-Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn \
-DtrimStackTrace=false \
-Dcom.exasol.dockerdb.image=${{ matrix.exasol_db_version }}
env:
# Set additional environment variable as in scala projects the scalatest plugin does not forward
# the system property -Dcom.exasol.dockerdb.image to the test's implementation.
EXASOL_DB_VERSION: ${{ matrix.exasol_db_version }}
3 changes: 0 additions & 3 deletions release_config.yml

This file was deleted.

Loading