build(deps): bump org.assertj:assertj-core from 3.26.0 to 3.26.3 #383
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
name: Artifacts Size | |
on: | |
pull_request: | |
branches: | |
- main | |
- v2 | |
paths: | |
- 'powertools-batch/**' | |
- 'powertools-cloudformation/**' | |
- 'powertools-core/**' # not in v2 | |
- 'powertools-common/**' # v2 only | |
- 'powertools-e2e-tests/**' | |
- 'powertools-idempotency/**' | |
- 'powertools-large-messages/**' | |
- 'powertools-logging/**' | |
- 'powertools-metrics/**' | |
- 'powertools-parameters/**' | |
- 'powertools-serialization/**' | |
- 'powertools-sqs/**' # not in v2 | |
- 'powertools-test-suite/**' # not in v2 | |
- 'powertools-tracing/**' | |
- 'powertools-validation/**' | |
- 'pom.xml' | |
- '.github/workflows/pr_artifacts_size.yml' | |
jobs: | |
codecheck: | |
runs-on: ubuntu-latest | |
permissions: | |
pull-requests: write | |
issues: read | |
steps: | |
- uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 # v3.5.3 | |
- name: Setup java JDK 11 | |
uses: actions/setup-java@5ffc13f4174014e2d4d4572b3d74c3fa61aeb2c2 # v3.11.0 | |
with: | |
distribution: 'corretto' | |
java-version: 11 | |
- name: Build with Maven | |
run: mvn clean package --file pom.xml -DskipTests artifact:buildinfo | |
- name: Get artifacts size & build report | |
id: artifacts-size-report | |
run: | | |
echo '## :floppy_disk: Artifacts Size Report' > report.md | |
echo '| Module | Version | Size (KB) |' >> report.md | |
echo '| --- | --- | --- |' >> report.md | |
artifact_version=$(mvn help:evaluate -Dexpression=project.version -q -DforceStdout) | |
for artifact in $(cat target/powertools-parent-*.buildinfo | grep 'outputs.*.jar' | grep -v 'sources.jar'); do | |
artifact_name=$(echo "$artifact" | cut -d '=' -f2) | |
artifact_name=${artifact_name%-$artifact_version.jar} | |
artifact_size=$(grep "${artifact%%.filename*}.length" target/powertools-parent-*.buildinfo | cut -d '=' -f2) | |
printf "| %s | %s | %.2f |\n" "$artifact_name" "$artifact_version" "$(bc <<< "scale=2; $artifact_size/1000")" >> report.md | |
done | |
- name: Find potential existing report | |
uses: peter-evans/find-comment@a54c31d7fa095754bfef525c0c8e5e5674c4b4b1 # 2.4.0 | |
id: find-comment | |
with: | |
issue-number: ${{ github.event.pull_request.number }} | |
comment-author: 'github-actions[bot]' | |
body-includes: Artifacts Size Report | |
- name: Write artifacts size report in comment | |
uses: peter-evans/create-or-update-comment@c6c9a1a66007646a28c153e2a8580a5bad27bcfa # 3.0.2 | |
with: | |
comment-id: ${{ steps.find-comment.outputs.comment-id }} | |
issue-number: ${{ github.event.pull_request.number }} | |
body-path: 'report.md' | |
edit-mode: replace |