mirror of
https://github.com/google-github-actions/setup-gcloud.git
synced 2026-08-26 09:49:22 +00:00
* First pass of cleanup of old actions code * fixed primary CHANGELOG file from setup-gcloud shift * cleaning up old workflows * removing working-directory spec as it's no longer needed * Moar cleanup on the path to cleanup redemption * "it now builds and tests pass locally" * lint error cleanup * More path cleanup * addressing PR comments, more cleanup * missed two files in last update * Update README.md Co-authored-by: Averi Kitsch <akitsch@google.com>
32 lines
1.1 KiB
Bash
Executable file
32 lines
1.1 KiB
Bash
Executable file
#!/bin/bash
|
|
# Copyright 2019 Google Inc.
|
|
#
|
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
# you may not use this file except in compliance with the License.
|
|
# You may obtain a copy of the License at
|
|
#
|
|
# http://www.apache.org/licenses/LICENSE-2.0
|
|
#
|
|
# Unless required by applicable law or agreed to in writing, software
|
|
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
# See the License for the specific language governing permissions and
|
|
# limitations under the License.
|
|
|
|
# This file contains integration tests for the setup-gcloud action.
|
|
|
|
# fail on error
|
|
set -e
|
|
|
|
# Ensure authentication was succesfully configured
|
|
echo "Testing authentication..."
|
|
gcloud projects list > /dev/null && echo "Passed."
|
|
|
|
# Ensure gsutil was properly configured
|
|
# NOTE(craigdbarber): does not work for Windows as the gcloud
|
|
# SDK windows release is currently missing the gsutil bash
|
|
# entrypoint script.
|
|
if which "gsutil" &> /dev/null; then
|
|
echo "Testing gsutil..."
|
|
gsutil ls gs://cloud-sdk-release > /dev/null && echo "Passed."
|
|
fi
|