Add support for specifying version constraints (#612)

This adds support for specifying a version _constraint_ for the version
of gcloud. Since the GitHub Actions runners pre-install a version of
gcloud, this can dramatically reduce CI times.
This commit is contained in:
Seth Vargo 2023-02-02 19:21:19 -05:00 committed by GitHub
parent fb149a7b94
commit 10b5bd2b6d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
8 changed files with 338 additions and 2152 deletions

View file

@ -38,6 +38,18 @@ jobs:
- name: 'Build'
run: 'npm ci && npm run build'
# No installation
- name: 'Install constraint'
uses: './'
with:
skip_install: true
# Constraint installation
- name: 'Install constraint'
uses: './'
with:
version: '>= 1.0.0'
# Default installation
- name: 'Install version'
uses: './'