From 9379db1a087120b3994c5b3dd181fa952a63c617 Mon Sep 17 00:00:00 2001 From: Brian Dorsey Date: Wed, 26 Feb 2025 17:12:08 -0800 Subject: [PATCH 1/2] ci: rename testing diff tool to: custard Rename the diffing and ci-setup.json helper tool to `custard` to match name change in `cloud-samples-tools` repo. --- .github/workflows/ci-dev.yaml | 10 +++++----- .github/workflows/ci-prod.yaml | 10 +++++----- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/.github/workflows/ci-dev.yaml b/.github/workflows/ci-dev.yaml index 322467fe5b..913300e348 100644 --- a/.github/workflows/ci-dev.yaml +++ b/.github/workflows/ci-dev.yaml @@ -40,7 +40,7 @@ jobs: - uses: actions/checkout@v4 with: repository: GoogleCloudPlatform/cloud-samples-tools - ref: v0.1.0 + ref: v0.2.0 path: cloud-samples-tools - name: Create `bin` directory for cloud-samples-tools binaries run: mkdir bin @@ -48,17 +48,17 @@ jobs: - uses: actions/setup-go@f111f3307d8850f501ac008e886eec1fd1932a34 # v5 with: go-version: ${{ env.GO_VERSION }} - - name: Build Ariwete (from cloud-samples-tools) + - name: Build Custard (from cloud-samples-tools) run: go build -o ../bin -v ./... - working-directory: cloud-samples-tools/ariwete + working-directory: cloud-samples-tools/custard - name: Get diffs run: git --no-pager diff --name-only HEAD origin/main | tee diffs.txt - name: Find Node.js affected packages id: nodejs run: | - echo "paths=$(./cloud-samples-tools/bin/ariwete affected .github/config/nodejs-dev.jsonc diffs.txt paths.txt)" >> $GITHUB_OUTPUT + echo "paths=$(./cloud-samples-tools/bin/custard affected .github/config/nodejs-dev.jsonc diffs.txt paths.txt)" >> $GITHUB_OUTPUT cat paths.txt - echo "setups=$(./cloud-samples-tools/bin/ariwete setup-files .github/config/nodejs-dev.jsonc paths.txt)" >> $GITHUB_OUTPUT + echo "setups=$(./cloud-samples-tools/bin/custard setup-files .github/config/nodejs-dev.jsonc paths.txt)" >> $GITHUB_OUTPUT nodejs-test: name: Node.js test diff --git a/.github/workflows/ci-prod.yaml b/.github/workflows/ci-prod.yaml index 77208eeff4..013fad6348 100644 --- a/.github/workflows/ci-prod.yaml +++ b/.github/workflows/ci-prod.yaml @@ -40,7 +40,7 @@ jobs: - uses: actions/checkout@v4 with: repository: GoogleCloudPlatform/cloud-samples-tools - ref: v0.1.0 + ref: v0.2.0 path: cloud-samples-tools - name: Create `bin` directory for cloud-samples-tools binaries run: mkdir bin @@ -48,17 +48,17 @@ jobs: - uses: actions/setup-go@f111f3307d8850f501ac008e886eec1fd1932a34 # v5 with: go-version: ${{ env.GO_VERSION }} - - name: Build Ariwete (from cloud-samples-tools) + - name: Build Custard (from cloud-samples-tools) run: go build -o ../bin -v ./... - working-directory: cloud-samples-tools/ariwete + working-directory: cloud-samples-tools/custard - name: Get diffs run: git --no-pager diff --name-only HEAD origin/main | tee diffs.txt - name: Find Node.js affected packages id: nodejs run: | - echo "paths=$(./cloud-samples-tools/bin/ariwete affected .github/config/nodejs-prod.jsonc diffs.txt paths.txt)" >> $GITHUB_OUTPUT + echo "paths=$(./cloud-samples-tools/bin/custard affected .github/config/nodejs-prod.jsonc diffs.txt paths.txt)" >> $GITHUB_OUTPUT cat paths.txt - echo "setups=$(./cloud-samples-tools/bin/ariwete setup-files .github/config/nodejs-prod.jsonc paths.txt)" >> $GITHUB_OUTPUT + echo "setups=$(./cloud-samples-tools/bin/custard setup-files .github/config/nodejs-prod.jsonc paths.txt)" >> $GITHUB_OUTPUT nodejs-lint: name: Node.js lint From ec48ade01c63dadc786b79ed536334214ffddc7e Mon Sep 17 00:00:00 2001 From: Brian Dorsey Date: Wed, 26 Feb 2025 17:43:26 -0800 Subject: [PATCH 2/2] fix: increment tag --- .github/workflows/ci-dev.yaml | 2 +- .github/workflows/ci-prod.yaml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci-dev.yaml b/.github/workflows/ci-dev.yaml index 913300e348..79fda5a6fd 100644 --- a/.github/workflows/ci-dev.yaml +++ b/.github/workflows/ci-dev.yaml @@ -40,7 +40,7 @@ jobs: - uses: actions/checkout@v4 with: repository: GoogleCloudPlatform/cloud-samples-tools - ref: v0.2.0 + ref: v0.2.1 path: cloud-samples-tools - name: Create `bin` directory for cloud-samples-tools binaries run: mkdir bin diff --git a/.github/workflows/ci-prod.yaml b/.github/workflows/ci-prod.yaml index 013fad6348..1aea6ef23e 100644 --- a/.github/workflows/ci-prod.yaml +++ b/.github/workflows/ci-prod.yaml @@ -40,7 +40,7 @@ jobs: - uses: actions/checkout@v4 with: repository: GoogleCloudPlatform/cloud-samples-tools - ref: v0.2.0 + ref: v0.2.1 path: cloud-samples-tools - name: Create `bin` directory for cloud-samples-tools binaries run: mkdir bin