mirror of
https://github.com/google-github-actions/setup-gcloud.git
synced 2026-08-27 11:19:22 +00:00
separated versioned and latest int-test jobs
This commit is contained in:
parent
4bd453f153
commit
7dbfdefde8
2 changed files with 27 additions and 10 deletions
35
.github/workflows/setup-gcloud-it.yml
vendored
35
.github/workflows/setup-gcloud-it.yml
vendored
|
|
@ -6,8 +6,8 @@ name: Integration Tests
|
|||
# kick off integration test runs for the time being.
|
||||
on: [push]
|
||||
jobs:
|
||||
run:
|
||||
name: setup-gcloud
|
||||
versioned:
|
||||
name: setup-gcloud versioned
|
||||
runs-on: ${{ matrix.operating-system }}
|
||||
strategy:
|
||||
fail-fast: false
|
||||
|
|
@ -16,20 +16,35 @@ jobs:
|
|||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
|
||||
- name: setup-gcloud versioned
|
||||
- name: setup-gcloud
|
||||
uses: ./setup-gcloud/
|
||||
with:
|
||||
version: '278.0.0'
|
||||
service_account_email: ${{ secrets.SETUP_GCLOUD_IT_EMAIL }}
|
||||
service_account_key: ${{ secrets.SETUP_GCLOUD_IT_KEY }}
|
||||
|
||||
- name: setup-gcloud latest
|
||||
uses: ./setup-gcloud/
|
||||
with:
|
||||
version: 'latest'
|
||||
service_account_email: ${{ secrets.SETUP_GCLOUD_IT_EMAIL }}
|
||||
service_account_key: ${{ secrets.SETUP_GCLOUD_IT_KEY }}
|
||||
|
||||
- name: Integration Tests
|
||||
shell: bash
|
||||
run: ./setup-gcloud/__tests__/integration-tests.sh
|
||||
latest:
|
||||
name: setup-gcloud latested
|
||||
runs-on: ${{ matrix.operating-system }}
|
||||
strategy:
|
||||
fail-fast: false
|
||||
matrix:
|
||||
operating-system: [ubuntu-latest, windows-latest, macos-latest]
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
|
||||
- name: setup-gcloud
|
||||
uses: ./setup-gcloud/
|
||||
with:
|
||||
version: 'latest'
|
||||
service_account_email: ${{ secrets.SETUP_GCLOUD_IT_EMAIL }}
|
||||
service_account_key: ${{ secrets.SETUP_GCLOUD_IT_KEY }}
|
||||
|
||||
- name: Integration Tests
|
||||
shell: bash
|
||||
run: ./setup-gcloud/__tests__/integration-tests.sh
|
||||
|
||||
|
||||
|
|
|
|||
2
setup-gcloud/dist/index.js
vendored
2
setup-gcloud/dist/index.js
vendored
|
|
@ -8390,6 +8390,8 @@ function run() {
|
|||
});
|
||||
});
|
||||
yield fs_1.promises.writeFile(tmpKeyFilePath, js_base64_1.Base64.decode(serviceAccountKey));
|
||||
// A workaround for https://github.com/actions/toolkit/issues/229
|
||||
// Currently exec on windows runs as cmd shell.
|
||||
let toolCommand = 'gcloud';
|
||||
if (process.platform == 'win32') {
|
||||
toolCommand = 'gcloud.cmd';
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue