From 98a97d7b0b44b8dfea17a23f29115d67db1a14ab Mon Sep 17 00:00:00 2001 From: Anthony Dahanne Date: Thu, 21 Sep 2023 10:47:16 -0400 Subject: [PATCH] test gh --- .github/workflows/java-akka.yml | 32 ------- .../workflows/java-application-insights.yml | 32 ------- .github/workflows/java-aspectj.yml | 32 ------- .github/workflows/java-dist-zip.yml | 32 ------- .github/workflows/java-gradle-node.yml | 32 ------- .github/workflows/java-gradle.yml | 32 ------- .github/workflows/java-kotlin.yml | 32 ------- .github/workflows/java-leiningen.yml | 34 ------- .github/workflows/java-maven-yarn.yml | 32 ------- .github/workflows/java-maven.yml | 32 ------- .github/workflows/java-native-image.yml | 32 ------- .github/workflows/java-opentelemetry.yml | 32 ------- .github/workflows/java-war.yml | 32 ------- .github/workflows/test-all-samples.yml | 96 ------------------- .../test-pull-request-ca-certificates.yml | 29 ------ .../test-pull-request-dotnet-core.yml | 42 -------- .github/workflows/test-pull-request-git.yml | 28 ------ .github/workflows/test-pull-request-go.yml | 44 --------- .github/workflows/test-pull-request-java.yml | 51 ++++------ .../workflows/test-pull-request-nodejs.yml | 42 -------- .github/workflows/test-pull-request-php.yml | 27 ------ .../workflows/test-pull-request-procfile.yml | 28 ------ .../workflows/test-pull-request-python.yml | 42 -------- .github/workflows/test-pull-request-ruby.yml | 28 ------ .../test-pull-request-web-servers.yml | 28 ------ .github/workflows/update-tools.yml | 57 ----------- java/akka/README.md | 2 + java/native-image/quarkus-native/README.md | 2 + 28 files changed, 20 insertions(+), 944 deletions(-) delete mode 100644 .github/workflows/java-akka.yml delete mode 100644 .github/workflows/java-application-insights.yml delete mode 100644 .github/workflows/java-aspectj.yml delete mode 100644 .github/workflows/java-dist-zip.yml delete mode 100644 .github/workflows/java-gradle-node.yml delete mode 100644 .github/workflows/java-gradle.yml delete mode 100644 .github/workflows/java-kotlin.yml delete mode 100644 .github/workflows/java-leiningen.yml delete mode 100644 .github/workflows/java-maven-yarn.yml delete mode 100644 .github/workflows/java-maven.yml delete mode 100644 .github/workflows/java-native-image.yml delete mode 100644 .github/workflows/java-opentelemetry.yml delete mode 100644 .github/workflows/java-war.yml delete mode 100644 .github/workflows/test-all-samples.yml delete mode 100644 .github/workflows/test-pull-request-ca-certificates.yml delete mode 100644 .github/workflows/test-pull-request-dotnet-core.yml delete mode 100644 .github/workflows/test-pull-request-git.yml delete mode 100644 .github/workflows/test-pull-request-go.yml delete mode 100644 .github/workflows/test-pull-request-nodejs.yml delete mode 100644 .github/workflows/test-pull-request-php.yml delete mode 100644 .github/workflows/test-pull-request-procfile.yml delete mode 100644 .github/workflows/test-pull-request-python.yml delete mode 100644 .github/workflows/test-pull-request-ruby.yml delete mode 100644 .github/workflows/test-pull-request-web-servers.yml delete mode 100644 .github/workflows/update-tools.yml diff --git a/.github/workflows/java-akka.yml b/.github/workflows/java-akka.yml deleted file mode 100644 index cb51f009..00000000 --- a/.github/workflows/java-akka.yml +++ /dev/null @@ -1,32 +0,0 @@ -name: akka -"on": - merge_group: - pull_request: - paths: - - java/akka/** - push: - branches: - - main - paths: - - java/akka/** - -jobs: - test: - runs-on: ubuntu-latest - strategy: - matrix: - java: [8, 11] - - steps: - - uses: actions/checkout@v4 - - uses: actions/setup-java@v3 - with: - java-version: ${{ matrix.java }} - distribution: 'zulu' - - uses: actions/cache@v3 - with: - path: ~/.sbt - key: ${{ runner.os }}-sbt-${{ hashFiles('java/akka/build.sbt') }} - restore-keys: ${{ runner.os }}-sbt - - run: ./sbt universal:packageBin - working-directory: java/akka diff --git a/.github/workflows/java-application-insights.yml b/.github/workflows/java-application-insights.yml deleted file mode 100644 index 4532717d..00000000 --- a/.github/workflows/java-application-insights.yml +++ /dev/null @@ -1,32 +0,0 @@ -name: application-insights -"on": - merge_group: - pull_request: - paths: - - java/application-insights/** - push: - branches: - - main - paths: - - java/application-insights/** - -jobs: - test: - runs-on: ubuntu-latest - strategy: - matrix: - java: [8, 11] - - steps: - - uses: actions/checkout@v4 - - uses: actions/setup-java@v3 - with: - java-version: ${{ matrix.java }} - distribution: 'zulu' - - uses: actions/cache@v3 - with: - path: ~/.m2 - key: ${{ runner.os }}-m2-${{ hashFiles('java/application-insights/pom.xml') }} - restore-keys: ${{ runner.os }}-m2 - - run: ./mvnw -B package -Djava.version=${{ matrix.java }} - working-directory: java/application-insights diff --git a/.github/workflows/java-aspectj.yml b/.github/workflows/java-aspectj.yml deleted file mode 100644 index ece2b9e7..00000000 --- a/.github/workflows/java-aspectj.yml +++ /dev/null @@ -1,32 +0,0 @@ -name: aspectj -"on": - merge_group: - pull_request: - paths: - - java/aspectj/** - push: - branches: - - main - paths: - - java/aspectj/** - -jobs: - test: - runs-on: ubuntu-latest - strategy: - matrix: - java: [8, 11] - - steps: - - uses: actions/checkout@v4 - - uses: actions/setup-java@v3 - with: - java-version: ${{ matrix.java }} - distribution: 'zulu' - - uses: actions/cache@v3 - with: - path: ~/.m2 - key: ${{ runner.os }}-m2-${{ hashFiles('java/aspectj/pom.xml') }} - restore-keys: ${{ runner.os }}-m2 - - run: ./mvnw -B package -Djava.version=${{ matrix.java }} - working-directory: java/aspectj diff --git a/.github/workflows/java-dist-zip.yml b/.github/workflows/java-dist-zip.yml deleted file mode 100644 index 441c9480..00000000 --- a/.github/workflows/java-dist-zip.yml +++ /dev/null @@ -1,32 +0,0 @@ -name: dist-zip -"on": - merge_group: - pull_request: - paths: - - java/dist-zip/** - push: - branches: - - main - paths: - - java/dist-zip/** - -jobs: - test: - runs-on: ubuntu-latest - strategy: - matrix: - java: [17] - - steps: - - uses: actions/checkout@v4 - - uses: actions/setup-java@v3 - with: - java-version: ${{ matrix.java }} - distribution: 'zulu' - - uses: actions/cache@v3 - with: - path: ~/.gradle/caches - key: ${{ runner.os }}-gradle-${{ hashFiles('java/gradle/*.gradle') }} - restore-keys: ${{ runner.os }}-gradle - - run: ./gradlew bootDistZip - working-directory: java/dist-zip diff --git a/.github/workflows/java-gradle-node.yml b/.github/workflows/java-gradle-node.yml deleted file mode 100644 index c9d7e937..00000000 --- a/.github/workflows/java-gradle-node.yml +++ /dev/null @@ -1,32 +0,0 @@ -name: gradle-node -"on": - merge_group: - pull_request: - paths: - - java/java-node/gradle-node/** - push: - branches: - - main - paths: - - java/java-node/gradle-node/** - -jobs: - test: - runs-on: ubuntu-latest - strategy: - matrix: - java: [17] - - steps: - - uses: actions/checkout@v4 - - uses: actions/setup-java@v3 - with: - java-version: ${{ matrix.java }} - distribution: 'zulu' - - uses: actions/cache@v3 - with: - path: ~/.gradle/caches - key: ${{ runner.os }}-gradle-${{ hashFiles('java/java-node/gradle-node/*.gradle') }} - restore-keys: ${{ runner.os }}-gradle - - run: ./gradlew build - working-directory: java/java-node/gradle-node diff --git a/.github/workflows/java-gradle.yml b/.github/workflows/java-gradle.yml deleted file mode 100644 index 3c8429ee..00000000 --- a/.github/workflows/java-gradle.yml +++ /dev/null @@ -1,32 +0,0 @@ -name: gradle -"on": - merge_group: - pull_request: - paths: - - java/gradle/** - push: - branches: - - main - paths: - - java/gradle/** - -jobs: - test: - runs-on: ubuntu-latest - strategy: - matrix: - java: [17] - - steps: - - uses: actions/checkout@v4 - - uses: actions/setup-java@v3 - with: - java-version: ${{ matrix.java }} - distribution: 'zulu' - - uses: actions/cache@v3 - with: - path: ~/.gradle/caches - key: ${{ runner.os }}-gradle-${{ hashFiles('java/gradle/*.gradle') }} - restore-keys: ${{ runner.os }}-gradle - - run: ./gradlew build - working-directory: java/gradle diff --git a/.github/workflows/java-kotlin.yml b/.github/workflows/java-kotlin.yml deleted file mode 100644 index 368717e2..00000000 --- a/.github/workflows/java-kotlin.yml +++ /dev/null @@ -1,32 +0,0 @@ -name: kotlin -"on": - merge_group: - pull_request: - paths: - - java/kotlin/** - push: - branches: - - main - paths: - - java/kotlin/** - -jobs: - test: - runs-on: ubuntu-latest - strategy: - matrix: - java: [8, 11] - - steps: - - uses: actions/checkout@v4 - - uses: actions/setup-java@v3 - with: - java-version: ${{ matrix.java }} - distribution: 'zulu' - - uses: actions/cache@v3 - with: - path: ~/.gradle/caches - key: ${{ runner.os }}-gradle-${{ hashFiles('java/gradle/*.gradle') }} - restore-keys: ${{ runner.os }}-gradle - - run: ./gradlew build - working-directory: java/kotlin diff --git a/.github/workflows/java-leiningen.yml b/.github/workflows/java-leiningen.yml deleted file mode 100644 index c5f6f523..00000000 --- a/.github/workflows/java-leiningen.yml +++ /dev/null @@ -1,34 +0,0 @@ -name: leiningen -"on": - merge_group: - pull_request: - paths: - - java/leiningen/** - push: - branches: - - main - paths: - - java/leiningen/** - -jobs: - test: - runs-on: ubuntu-latest - strategy: - matrix: - java: [8, 11] - - steps: - - uses: actions/checkout@v4 - - uses: actions/setup-java@v3 - with: - java-version: ${{ matrix.java }} - distribution: 'zulu' - - uses: actions/cache@v3 - with: - path: ~/.lein - key: ${{ runner.os }}-lein-${{ hashFiles('java/leiningen/project.clj') }} - restore-keys: ${{ runner.os }}-lein - - run: ./lein uberjar - working-directory: java/leiningen - env: - LEIN_HOME: ~/.lein diff --git a/.github/workflows/java-maven-yarn.yml b/.github/workflows/java-maven-yarn.yml deleted file mode 100644 index b770c36d..00000000 --- a/.github/workflows/java-maven-yarn.yml +++ /dev/null @@ -1,32 +0,0 @@ -name: maven-yarn -"on": - merge_group: - pull_request: - paths: - - java/java-node/maven-yarn/** - push: - branches: - - main - paths: - - java/java-node/maven-yarn/** - -jobs: - test: - runs-on: ubuntu-latest - strategy: - matrix: - java: [17] - - steps: - - uses: actions/checkout@v4 - - uses: actions/setup-java@v3 - with: - java-version: ${{ matrix.java }} - distribution: 'zulu' - - uses: actions/cache@v3 - with: - path: ~/.m2 - key: ${{ runner.os }}-m2-${{ hashFiles('java/java-node/maven-yarn/pom.xml') }} - restore-keys: ${{ runner.os }}-m2 - - run: ./mvnw -B package -Djava.version=${{ matrix.java }} - working-directory: java/java-node/maven-yarn diff --git a/.github/workflows/java-maven.yml b/.github/workflows/java-maven.yml deleted file mode 100644 index 74bcc019..00000000 --- a/.github/workflows/java-maven.yml +++ /dev/null @@ -1,32 +0,0 @@ -name: maven -"on": - merge_group: - pull_request: - paths: - - java/maven/** - push: - branches: - - main - paths: - - java/maven/** - -jobs: - test: - runs-on: ubuntu-latest - strategy: - matrix: - java: [17] - - steps: - - uses: actions/checkout@v4 - - uses: actions/setup-java@v3 - with: - java-version: ${{ matrix.java }} - distribution: 'zulu' - - uses: actions/cache@v3 - with: - path: ~/.m2 - key: ${{ runner.os }}-m2-${{ hashFiles('java/maven/pom.xml') }} - restore-keys: ${{ runner.os }}-m2 - - run: ./mvnw -B package -Djava.version=${{ matrix.java }} - working-directory: java/maven diff --git a/.github/workflows/java-native-image.yml b/.github/workflows/java-native-image.yml deleted file mode 100644 index a05186a3..00000000 --- a/.github/workflows/java-native-image.yml +++ /dev/null @@ -1,32 +0,0 @@ -name: native-image -"on": - merge_group: - pull_request: - paths: - - java/native-image/java-native-image-sample/** - push: - branches: - - main - paths: - - java/native-image/java-native-image-sample/** - -jobs: - test: - runs-on: ubuntu-latest - strategy: - matrix: - java: [17] - - steps: - - uses: actions/checkout@v4 - - uses: actions/setup-java@v3 - with: - java-version: ${{ matrix.java }} - distribution: 'zulu' - - uses: actions/cache@v3 - with: - path: ~/.m2 - key: ${{ runner.os }}-m2-${{ hashFiles('java/native-image/java-native-image-sample/pom.xml') }} - restore-keys: ${{ runner.os }}-m2 - - run: ./mvnw -B package -Djava.version=${{ matrix.java }} - working-directory: java/native-image/java-native-image-sample diff --git a/.github/workflows/java-opentelemetry.yml b/.github/workflows/java-opentelemetry.yml deleted file mode 100644 index 56e9f008..00000000 --- a/.github/workflows/java-opentelemetry.yml +++ /dev/null @@ -1,32 +0,0 @@ -name: opentelemetry -"on": - merge_group: - pull_request: - paths: - - java/opentelemetry/** - push: - branches: - - main - paths: - - java/opentelemetry/** - -jobs: - test: - runs-on: ubuntu-latest - strategy: - matrix: - java: [11] - - steps: - - uses: actions/checkout@v4 - - uses: actions/setup-java@v3 - with: - java-version: ${{ matrix.java }} - distribution: 'zulu' - - uses: actions/cache@v3 - with: - path: ~/.gradle/caches - key: ${{ runner.os }}-gradle-${{ hashFiles('java/opentelemetry/*.gradle') }} - restore-keys: ${{ runner.os }}-gradle - - run: ./gradlew build - working-directory: java/opentelemetry diff --git a/.github/workflows/java-war.yml b/.github/workflows/java-war.yml deleted file mode 100644 index d469b191..00000000 --- a/.github/workflows/java-war.yml +++ /dev/null @@ -1,32 +0,0 @@ -name: war -"on": - merge_group: - pull_request: - paths: - - java/war/** - push: - branches: - - main - paths: - - java/war/** - -jobs: - test: - runs-on: ubuntu-latest - strategy: - matrix: - java: [8, 11] - - steps: - - uses: actions/checkout@v4 - - uses: actions/setup-java@v3 - with: - java-version: ${{ matrix.java }} - distribution: 'zulu' - - uses: actions/cache@v3 - with: - path: ~/.m2 - key: ${{ runner.os }}-m2-${{ hashFiles('java/war/pom.xml') }} - restore-keys: ${{ runner.os }}-m2 - - run: ./mvnw -B package -Djava.version=${{ matrix.java }} - working-directory: java/war diff --git a/.github/workflows/test-all-samples.yml b/.github/workflows/test-all-samples.yml deleted file mode 100644 index 6e88f27e..00000000 --- a/.github/workflows/test-all-samples.yml +++ /dev/null @@ -1,96 +0,0 @@ -name: Test All Samples - -on: - merge_group: - schedule: - - cron: '30 1 * * *' - workflow_dispatch: {} - pull_request: - branches: - - main - paths: - - 'scripts/.util/tools.json' - -jobs: - smoke: - name: Smoke Tests - runs-on: ubuntu-latest - strategy: - fail-fast: false - max-parallel: 3 - matrix: - suite: - - 'ca-certificates' - - 'dotnet-core' - - 'git' - - 'go' - - 'java' - - 'nodejs' - - 'php' - - 'procfile' - - 'python' - - 'ruby' - - 'web-servers' - - steps: - - name: Setup Go - uses: actions/setup-go@v4 - with: - go-version: 1.18.x - - - name: Checkout - uses: actions/checkout@v4 - - - name: Cache local Gradle repository - if: ${{ matrix.suite == 'java' }} - uses: actions/cache@v3 - with: - path: | - ~/.gradle/caches - ~/.gradle/wrapper - key: ${{ runner.os }}-gradle-${{ hashFiles('java/**/*.gradle*', 'java/**/gradle-wrapper.properties') }} - restore-keys: | - ${{ runner.os }}-gradle- - - - name: Cache local Maven repository - if: ${{ matrix.suite == 'java' }} - uses: actions/cache@v3 - with: - path: | - ~/.m2/repository - ~/.m2/wrapper - key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml', 'java/**/maven-wrapper.properties') }} - restore-keys: | - ${{ runner.os }}-maven- - - - name: Setup Directories - if: ${{ matrix.suite == 'java' }} - run: | - #!/usr/bin/env bash - set -euo pipefail - - mkdir -p ~/.m2/repository - mkdir -p ~/.m2/repository/wrapper/dists - mkdir -p ~/.gradle/caches - mkdir -p ~/.gradle/wrapper/dists - chmod -R 775 ~/.m2 - chmod -R 775 ~/.gradle - - - name: Test ${{ matrix.suite }} - run: | - ./scripts/smoke.sh --builder paketobuildpacks/builder:full --suite ${{ matrix.suite }} - - - name: File Issue - if: ${{ failure() && github.event_name != 'pull_request' }} - run: | - echo "${{ secrets.PAKETO_BOT_GITHUB_TOKEN }}" | gh auth login --with-token - failure_issue=$(gh issue list --json number --label "test-failure" --jq .[0].number) - if [ -z $failure_issue ]; \ - then gh issue create \ - --title "Failure: 'Test All Samples' workflow" \ - --label "test-failure" \ - --body "[Test ${{ matrix.suite }} workflow](https://github.com/${{github.repository}}/actions/runs/${{github.run_id}}) failed. Please take a look to ensure samples are working. (cc @paketo-buildpacks/content-maintainers)" \ - -R ${{github.repository}}; \ - else gh issue comment $failure_issue --body "Another failure occurred: [Test ${{ matrix.suite }} workflow](https://github.com/${{github.repository}}/actions/runs/${{github.run_id}}) failed."; \ - fi - echo $failure_issue diff --git a/.github/workflows/test-pull-request-ca-certificates.yml b/.github/workflows/test-pull-request-ca-certificates.yml deleted file mode 100644 index 65bf8904..00000000 --- a/.github/workflows/test-pull-request-ca-certificates.yml +++ /dev/null @@ -1,29 +0,0 @@ -name: Test Pull Request (ca-certificates) - -on: - merge_group: - pull_request: - branches: - - main - paths: - - 'ca-certificates/**' - -jobs: - smoke: - name: Smoke Tests - runs-on: ubuntu-latest - steps: - - name: Setup Go - uses: actions/setup-go@v4 - with: - go-version: 1.18.x - - - name: Checkout - uses: actions/checkout@v4 - - - name: Test ca-certificates Samples - run: | - ./scripts/smoke.sh --suite ca-certificates \ - --builder paketobuildpacks/builder:full \ - --builder paketobuildpacks/builder:base \ - --builder paketobuildpacks/builder:tiny diff --git a/.github/workflows/test-pull-request-dotnet-core.yml b/.github/workflows/test-pull-request-dotnet-core.yml deleted file mode 100644 index ec07eabc..00000000 --- a/.github/workflows/test-pull-request-dotnet-core.yml +++ /dev/null @@ -1,42 +0,0 @@ -name: Test Pull Request (Dotnet Core) - -on: - merge_group: - pull_request: - branches: - - main - paths: - - 'dotnet-core/**' - - '.github/workflows/test-pull-request-dotnet-core.yml' - -concurrency: - # only one instance of test suite per PR at one time - group: pr-${{ github.event.number }} - cancel-in-progress: true - -jobs: - smoke: - name: Smoke Tests - runs-on: ubuntu-latest - strategy: - fail-fast: false - max-parallel: 3 - matrix: - builder: - - 'paketobuildpacks/builder:full' - - 'paketobuildpacks/builder:base' - - 'paketobuildpacks/builder-jammy-base:latest' - - 'paketobuildpacks/builder-jammy-full:latest' - steps: - - name: Setup Go - uses: actions/setup-go@v4 - with: - go-version: 1.18.x - - - name: Checkout - uses: actions/checkout@v4 - - - name: Test .NET Samples - run: | - ./scripts/smoke.sh --suite dotnet-core \ - --builder ${{ matrix.builder }} diff --git a/.github/workflows/test-pull-request-git.yml b/.github/workflows/test-pull-request-git.yml deleted file mode 100644 index ea5783a1..00000000 --- a/.github/workflows/test-pull-request-git.yml +++ /dev/null @@ -1,28 +0,0 @@ -name: Test Pull Request (git) - -on: - merge_group: - pull_request: - branches: - - main - paths: - - 'git/**' - -jobs: - smoke: - name: Smoke Tests - runs-on: ubuntu-latest - steps: - - name: Setup Go - uses: actions/setup-go@v4 - with: - go-version: 1.18.x - - - name: Checkout - uses: actions/checkout@v4 - - - name: Test git Samples - run: | - ./scripts/smoke.sh --suite git \ - --builder paketobuildpacks/builder:full \ - --builder paketobuildpacks/builder:base diff --git a/.github/workflows/test-pull-request-go.yml b/.github/workflows/test-pull-request-go.yml deleted file mode 100644 index 5cd846a1..00000000 --- a/.github/workflows/test-pull-request-go.yml +++ /dev/null @@ -1,44 +0,0 @@ -name: Test Pull Request (Go) - -on: - merge_group: - pull_request: - branches: - - main - paths: - - 'go/**' - - '.github/workflows/test-pull-request-go.yml' - -concurrency: - # only one instance of test suite per PR at one time - group: pr-${{ github.event.number }} - cancel-in-progress: true - -jobs: - smoke: - name: Smoke Tests - runs-on: ubuntu-latest - strategy: - fail-fast: false - max-parallel: 3 - matrix: - builder: - - 'paketobuildpacks/builder:full' - - 'paketobuildpacks/builder:base' - - 'paketobuildpacks/builder:tiny' - - 'paketobuildpacks/builder-jammy-full:latest' - - 'paketobuildpacks/builder-jammy-base:latest' - - 'paketobuildpacks/builder-jammy-tiny:latest' - steps: - - name: Setup Go - uses: actions/setup-go@v4 - with: - go-version: 1.18.x - - - name: Checkout - uses: actions/checkout@v4 - - - name: Test Go Samples - run: | - ./scripts/smoke.sh --suite go \ - --builder ${{ matrix.builder }} diff --git a/.github/workflows/test-pull-request-java.yml b/.github/workflows/test-pull-request-java.yml index 5c180c4f..0a02c0f3 100644 --- a/.github/workflows/test-pull-request-java.yml +++ b/.github/workflows/test-pull-request-java.yml @@ -7,14 +7,13 @@ on: - main paths: - 'java/**' - - '!java/native-image/**' - - '!java/java-node/**' jobs: smoke: name: Smoke Tests runs-on: ubuntu-latest steps: + - name: Setup Go uses: actions/setup-go@v4 with: @@ -22,42 +21,24 @@ jobs: - name: Checkout uses: actions/checkout@v4 - - - name: Cache local Gradle repository - uses: actions/cache@v3 - with: - path: | - ~/.gradle/caches - ~/.gradle/wrapper - key: ${{ runner.os }}-gradle-${{ hashFiles('java/**/*.gradle*', 'java/**/gradle-wrapper.properties') }} - restore-keys: | - ${{ runner.os }}-gradle- - - - name: Cache local Maven repository - uses: actions/cache@v3 with: - path: | - ~/.m2/repository - ~/.m2/wrapper - key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml', 'java/**/maven-wrapper.properties') }} - restore-keys: | - ${{ runner.os }}-maven- + fetch-depth: 0 - - name: Setup Directories + - name: Discover changed paths + id: paths run: | - #!/usr/bin/env bash - set -euo pipefail - - mkdir -p ~/.m2/repository - mkdir -p ~/.m2/repository/wrapper/dists - mkdir -p ~/.gradle/caches - mkdir -p ~/.gradle/wrapper/dists - chmod -R 775 ~/.m2 - chmod -R 775 ~/.gradle + env + echo "a PR was triggered; let's find out which modules were updated" + # see: https://stackoverflow.com/a/8721550/24069 for usage of paste + echo "changed_java_projects=$( git diff --name-only --merge-base origin/$GITHUB_BASE_REF $GITHUB_SHA | xargs -n 1 dirname | uniq | grep -v "^\." | paste -s -d, -)" >> $GITHUB_OUTPUT + echo "These are the modules that we'll work with: $(cat $GITHUB_OUTPUT)" - name: Test Java Samples run: | - ./scripts/smoke.sh --suite java \ - --builder paketobuildpacks/builder:full \ - --builder paketobuildpacks/builder:base \ - --builder paketobuildpacks/builder:tiny + env + echo ${{ steps.paths.outputs.changed_java_projects }} + +# ./scripts/smoke.sh --suite java \ +# --builder paketobuildpacks/builder:full \ +# --builder paketobuildpacks/builder:base \ +# --builder paketobuildpacks/builder:tiny diff --git a/.github/workflows/test-pull-request-nodejs.yml b/.github/workflows/test-pull-request-nodejs.yml deleted file mode 100644 index fd63cde2..00000000 --- a/.github/workflows/test-pull-request-nodejs.yml +++ /dev/null @@ -1,42 +0,0 @@ -name: Test Pull Request (Nodejs) - -on: - merge_group: - pull_request: - branches: - - main - paths: - - 'nodejs/**' - - '.github/workflows/test-pull-request-nodejs.yml' - -concurrency: - # only one instance of test suite per PR at one time - group: pr-${{ github.event.number }} - cancel-in-progress: true - -jobs: - smoke: - name: Smoke Tests - runs-on: ubuntu-latest - strategy: - fail-fast: false - max-parallel: 3 - matrix: - builder: - - 'paketobuildpacks/builder:full' - - 'paketobuildpacks/builder:base' - - 'paketobuildpacks/builder-jammy-full:latest' - - 'paketobuildpacks/builder-jammy-base:latest' - steps: - - name: Setup Go - uses: actions/setup-go@v4 - with: - go-version: 1.18.x - - - name: Checkout - uses: actions/checkout@v4 - - - name: Test Nodejs Samples - run: | - ./scripts/smoke.sh --suite nodejs \ - --builder ${{ matrix.builder }} diff --git a/.github/workflows/test-pull-request-php.yml b/.github/workflows/test-pull-request-php.yml deleted file mode 100644 index b5ffc4fd..00000000 --- a/.github/workflows/test-pull-request-php.yml +++ /dev/null @@ -1,27 +0,0 @@ -name: Test Pull Request (PHP) - -on: - merge_group: - pull_request: - branches: - - main - paths: - - 'php/**' - -jobs: - smoke: - name: Smoke Tests - runs-on: ubuntu-latest - steps: - - name: Setup Go - uses: actions/setup-go@v4 - with: - go-version: 1.18.x - - - name: Checkout - uses: actions/checkout@v4 - - - name: Test PHP Samples - run: | - ./scripts/smoke.sh --suite php \ - --builder paketobuildpacks/builder:full diff --git a/.github/workflows/test-pull-request-procfile.yml b/.github/workflows/test-pull-request-procfile.yml deleted file mode 100644 index 517321ff..00000000 --- a/.github/workflows/test-pull-request-procfile.yml +++ /dev/null @@ -1,28 +0,0 @@ -name: Test Pull Request (Procfile) - -on: - merge_group: - pull_request: - branches: - - main - paths: - - 'procfile/**' - -jobs: - smoke: - name: Smoke Tests - runs-on: ubuntu-latest - steps: - - name: Setup Go - uses: actions/setup-go@v4 - with: - go-version: 1.18.x - - - name: Checkout - uses: actions/checkout@v4 - - - name: Test Procfile Samples - run: | - ./scripts/smoke.sh --suite procfile \ - --builder paketobuildpacks/builder:full \ - --builder paketobuildpacks/builder:base diff --git a/.github/workflows/test-pull-request-python.yml b/.github/workflows/test-pull-request-python.yml deleted file mode 100644 index 8f83dcf2..00000000 --- a/.github/workflows/test-pull-request-python.yml +++ /dev/null @@ -1,42 +0,0 @@ -name: Test Pull Request (python) - -on: - merge_group: - pull_request: - branches: - - main - paths: - - 'python/**' - - '.github/workflows/test-pull-request-python.yml' - -concurrency: - # only one instance of test suite per PR at one time - group: pr-${{ github.event.number }} - cancel-in-progress: true - -jobs: - smoke: - name: Smoke Tests - runs-on: ubuntu-latest - strategy: - fail-fast: false - max-parallel: 3 - matrix: - builder: - - 'paketobuildpacks/builder:full' - - 'paketobuildpacks/builder:base' - - 'paketobuildpacks/builder-jammy-full:latest' - - 'paketobuildpacks/builder-jammy-base:latest' - steps: - - name: Setup Go - uses: actions/setup-go@v4 - with: - go-version: 1.18.x - - - name: Checkout - uses: actions/checkout@v4 - - - name: Test python Samples - run: | - ./scripts/smoke.sh --suite python \ - --builder ${{ matrix.builder }} diff --git a/.github/workflows/test-pull-request-ruby.yml b/.github/workflows/test-pull-request-ruby.yml deleted file mode 100644 index d509e991..00000000 --- a/.github/workflows/test-pull-request-ruby.yml +++ /dev/null @@ -1,28 +0,0 @@ -name: Test Pull Request (Ruby) - -on: - merge_group: - pull_request: - branches: - - main - paths: - - 'ruby/**' - -jobs: - smoke: - name: Smoke Tests - runs-on: ubuntu-latest - steps: - - name: Setup Go - uses: actions/setup-go@v4 - with: - go-version: 1.18.x - - - name: Checkout - uses: actions/checkout@v4 - - - name: Test Ruby Samples - run: | - ./scripts/smoke.sh --suite ruby \ - --builder paketobuildpacks/builder:full \ - --builder paketobuildpacks/builder:base diff --git a/.github/workflows/test-pull-request-web-servers.yml b/.github/workflows/test-pull-request-web-servers.yml deleted file mode 100644 index 7864561e..00000000 --- a/.github/workflows/test-pull-request-web-servers.yml +++ /dev/null @@ -1,28 +0,0 @@ -name: Test Pull Request (web-servers) - -on: - merge_group: - pull_request: - branches: - - main - paths: - - 'web-servers/**' - -jobs: - smoke: - name: Smoke Tests - runs-on: ubuntu-latest - steps: - - name: Setup Go - uses: actions/setup-go@v4 - with: - go-version: 1.18.x - - - name: Checkout - uses: actions/checkout@v4 - - - name: Test Web Servers Samples - run: | - ./scripts/smoke.sh --suite web-servers \ - --builder paketobuildpacks/builder:full \ - --builder paketobuildpacks/builder:base diff --git a/.github/workflows/update-tools.yml b/.github/workflows/update-tools.yml deleted file mode 100644 index 1e557643..00000000 --- a/.github/workflows/update-tools.yml +++ /dev/null @@ -1,57 +0,0 @@ ---- -name: Update Tools - -on: - schedule: - - cron: '0 0 * * *' - workflow_dispatch: {} - -jobs: - update: - name: Update - runs-on: ubuntu-latest - steps: - - name: Checkout - uses: actions/checkout@v4 - - - name: Checkout Branch - uses: paketo-buildpacks/github-config/actions/pull-request/checkout-branch@main - with: - branch: automation/tools/update - - - name: Fetch Latest pack - id: latest-pack - uses: paketo-buildpacks/github-config/actions/tools/latest@main - with: - token: ${{ secrets.PAKETO_BOT_GITHUB_TOKEN }} - repo: buildpacks/pack - - - name: Update tools.json - env: - PACK_VERSION: ${{ steps.latest-pack.outputs.version }} - run: | - echo null | jq -r -S --arg pack "${PACK_VERSION}" \ - '{ pack: $pack }' > ./scripts/.util/tools.json - - - name: Commit - id: commit - uses: paketo-buildpacks/github-config/actions/pull-request/create-commit@main - with: - message: "Updating tools" - pathspec: "." - keyid: ${{ secrets.PAKETO_BOT_GPG_SIGNING_KEY_ID }} - key: ${{ secrets.PAKETO_BOT_GPG_SIGNING_KEY }} - - - name: Push Branch - if: ${{ steps.commit.outputs.commit_sha != '' }} - uses: paketo-buildpacks/github-config/actions/pull-request/push-branch@main - with: - branch: automation/tools/update - - - name: Open Pull Request - if: ${{ steps.commit.outputs.commit_sha != '' }} - uses: paketo-buildpacks/github-config/actions/pull-request/open@main - with: - token: ${{ secrets.PAKETO_BOT_GITHUB_TOKEN }} - title: "Updates tools" - branch: automation/tools/update diff --git a/java/akka/README.md b/java/akka/README.md index 785784a1..2a017736 100644 --- a/java/akka/README.md +++ b/java/akka/README.md @@ -24,3 +24,5 @@ curl \ http://localhost:8080/users curl -s http://localhost:8080/users | jq . ``` + +change \ No newline at end of file diff --git a/java/native-image/quarkus-native/README.md b/java/native-image/quarkus-native/README.md index 7c6e1977..94c20bb7 100644 --- a/java/native-image/quarkus-native/README.md +++ b/java/native-image/quarkus-native/README.md @@ -27,6 +27,8 @@ docker run --rm --tty --publish 8080:8080 applications/quarkus-native curl -s http://localhost:8080/hello ``` +change + or ```bash