From 77b15f3936b82f360b818a1be688878df43991e9 Mon Sep 17 00:00:00 2001 From: Roy Moore Date: Sat, 15 Mar 2025 11:52:46 +0000 Subject: [PATCH 1/3] Update job --- .github/workflows/ci-community.yml | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/.github/workflows/ci-community.yml b/.github/workflows/ci-community.yml index caebace06..09b309928 100644 --- a/.github/workflows/ci-community.yml +++ b/.github/workflows/ci-community.yml @@ -19,20 +19,20 @@ jobs: - name: Checkout contents uses: actions/checkout@v4 with: - fetch-depth: 0 # recommended by tj-actions/changed-files + fetch-depth: 0 - name: Get changed files id: changed-files - uses: tj-actions/changed-files@v42 + uses: dorny/paths-filter@v3 with: - path: "./modules" - diff_relative: true - dir_names: true - dir_names_exclude_current_dir: true - json: true + base: ${{ github.ref }} + list-files: 'json' + filters: | + modules: + - 'modules/**' - name: Compute modules from files id: compute-changes run: | - modules=$(echo "${{ steps.changed-files.outputs.all_changed_files }}" | jq '.[] | split("/") | first' | jq -s -c '. | unique') + modules=$(echo "${{ toJson(steps.changed-files.outputs.modules_files) }}" | jq '.[] | split("/") | nth(1)' | jq -s -c '. | unique') echo "computed_modules=$modules" echo "computed_modules=$modules" >> $GITHUB_OUTPUT outputs: From 242bf6a012077eeb74d7c88f9cd3ee1d2759d681 Mon Sep 17 00:00:00 2001 From: Roy Moore Date: Sat, 15 Mar 2025 13:08:46 +0000 Subject: [PATCH 2/3] Module changes for testing --- modules/aws/testcontainers/aws/aws_lambda.py | 2 ++ modules/generic/testcontainers/generic/server.py | 2 ++ 2 files changed, 4 insertions(+) diff --git a/modules/aws/testcontainers/aws/aws_lambda.py b/modules/aws/testcontainers/aws/aws_lambda.py index 30a1f0af9..e3cd76faf 100644 --- a/modules/aws/testcontainers/aws/aws_lambda.py +++ b/modules/aws/testcontainers/aws/aws_lambda.py @@ -9,6 +9,8 @@ RIE_PATH = "/2015-03-31/functions/function/invocations" # AWS OS-only base images contain an Amazon Linux distribution and the runtime interface emulator (RIE) for Lambda. +# This comment can be removed (Used for testing) + class AWSLambdaContainer(ServerContainer): """ diff --git a/modules/generic/testcontainers/generic/server.py b/modules/generic/testcontainers/generic/server.py index fe990f179..61e9c5eb9 100644 --- a/modules/generic/testcontainers/generic/server.py +++ b/modules/generic/testcontainers/generic/server.py @@ -9,6 +9,8 @@ from testcontainers.core.image import DockerImage from testcontainers.core.waiting_utils import wait_container_is_ready +# This comment can be removed (Used for testing) + class ServerContainer(DockerContainer): """ From cb0dff8f87898de30c15fdc99a8c39d42d5e4013 Mon Sep 17 00:00:00 2001 From: David Ankin Date: Mon, 17 Mar 2025 08:21:47 -0400 Subject: [PATCH 3/3] pinned hash --- .github/workflows/ci-community.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci-community.yml b/.github/workflows/ci-community.yml index 09b309928..58faa42a3 100644 --- a/.github/workflows/ci-community.yml +++ b/.github/workflows/ci-community.yml @@ -22,7 +22,7 @@ jobs: fetch-depth: 0 - name: Get changed files id: changed-files - uses: dorny/paths-filter@v3 + uses: dorny/paths-filter@de90cc6fb38fc0963ad72b210f1f284cd68cea36 # v3 with: base: ${{ github.ref }} list-files: 'json'