Skip to content
Open
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
11 changes: 10 additions & 1 deletion .github/actions/client/resolve-latest/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,17 @@ outputs:
runs:
using: "composite"
steps:
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: 1.x
- name: Resolve latest conformance test client version
id: resolve-latest-client
run: |
echo "::set-output name=version::$(curl --silent "https://api.github.com/repos/GoogleCloudPlatform/functions-framework-conformance/releases/latest" | jq -r '.tag_name')"
VERSION=$(go list -m -json github.com/GoogleCloudPlatform/functions-framework-conformance@latest | jq -r '.Version')
if [ "$VERSION" = "null" ] || [ -z "$VERSION" ]; then
echo "Failed to resolve latest version"
exit 1
fi
echo "version=$VERSION" >> $GITHUB_OUTPUT
shell: bash
2 changes: 1 addition & 1 deletion .github/workflows/buildpack-integration-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ jobs:
run: echo CLIENT_VERSION=${{ steps.conformance-client-latest.outputs.version }} >> $GITHUB_ENV
- name: Set cache key for client version
id: set-cached-client-version
run: echo "::set-output name=key::conformance-client-${{ env.CLIENT_VERSION }}"
run: echo "key=conformance-client-${{ env.CLIENT_VERSION }}" >> $GITHUB_OUTPUT

# INSTALL CONFORMANCE CLIENT
- name: Check for cached conformance test client
Expand Down
Loading