Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: cleanup integration tests #582

Merged
merged 1 commit into from Nov 8, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
22 changes: 9 additions & 13 deletions .github/workflows/setup-gcloud-it.yml
Expand Up @@ -17,14 +17,14 @@ jobs:
versioned:
if: ${{ github.event_name == 'push' || github.repository == github.event.pull_request.head.repo.full_name && github.actor != 'dependabot[bot]' }}
name: setup-gcloud versioned
runs-on: ${{ matrix.operating-system }}
strategy:
fail-fast: false
matrix:
os:
- 'ubuntu-latest'
- 'windows-latest'
- 'macos-latest'
runs-on: ${{ matrix.os }}

permissions:
id-token: 'write'
Expand Down Expand Up @@ -59,14 +59,14 @@ jobs:
latest:
if: ${{ github.event_name == 'push' || github.repository == github.event.pull_request.head.repo.full_name && github.actor != 'dependabot[bot]' }}
name: setup-gcloud latest
runs-on: ${{ matrix.operating-system }}
strategy:
fail-fast: false
matrix:
os:
- 'ubuntu-latest'
- 'windows-latest'
- 'macos-latest'
runs-on: ${{ matrix.os }}

permissions:
id-token: 'write'
Expand Down Expand Up @@ -106,14 +106,14 @@ jobs:
project_id:
if: ${{ github.event_name == 'push' || github.repository == github.event.pull_request.head.repo.full_name && github.actor != 'dependabot[bot]' }}
name: setup-gcloud with configured project
runs-on: ${{ matrix.operating-system }}
strategy:
fail-fast: false
matrix:
os:
- 'ubuntu-latest'
- 'windows-latest'
- 'macos-latest'
runs-on: ${{ matrix.os }}

permissions:
id-token: 'write'
Expand Down Expand Up @@ -143,14 +143,14 @@ jobs:
components:
if: ${{ github.event_name == 'push' || github.repository == github.event.pull_request.head.repo.full_name && github.actor != 'dependabot[bot]' }}
name: setup-gcloud with components
runs-on: ${{ matrix.operating-system }}
strategy:
fail-fast: false
matrix:
os:
- 'ubuntu-latest'
- 'windows-latest'
- 'macos-latest'
runs-on: ${{ matrix.os }}

permissions:
id-token: 'write'
Expand Down Expand Up @@ -192,7 +192,7 @@ jobs:
docker:
if: ${{ github.event_name == 'push' || github.repository == github.event.pull_request.head.repo.full_name && github.actor != 'dependabot[bot]' }}
name: 'setup-gcloud with docker-based steps'
runs-on: 'ubuntu-latest'
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
Expand Down Expand Up @@ -234,14 +234,14 @@ jobs:
wif:
if: ${{ github.event_name == 'push' || github.repository == github.event.pull_request.head.repo.full_name && github.actor != 'dependabot[bot]' }}
name: 'with wif'
runs-on: '${{ matrix.os }}'
strategy:
fail-fast: false
matrix:
os:
- 'ubuntu-latest'
- 'windows-latest'
- 'macos-latest'
runs-on: '${{ matrix.os }}'

permissions:
id-token: 'write'
Expand Down Expand Up @@ -275,14 +275,14 @@ jobs:
credentials_json:
if: ${{ github.event_name == 'push' || github.repository == github.event.pull_request.head.repo.full_name && github.actor != 'dependabot[bot]' }}
name: 'with key and auth action'
runs-on: '${{ matrix.os }}'
strategy:
fail-fast: false
matrix:
os:
- 'ubuntu-latest'
- 'windows-latest'
- 'macos-latest'
runs-on: '${{ matrix.os }}'

permissions:
id-token: 'write'
Expand Down Expand Up @@ -315,14 +315,14 @@ jobs:
credentials_json_exported:
if: ${{ github.event_name == 'push' || github.repository == github.event.pull_request.head.repo.full_name && github.actor != 'dependabot[bot]' }}
name: 'auth action with json key and setup-gcloud export'
runs-on: '${{ matrix.os }}'
strategy:
fail-fast: false
matrix:
os:
- 'ubuntu-latest'
- 'windows-latest'
- 'macos-latest'
runs-on: '${{ matrix.os }}'

steps:
- uses: 'actions/checkout@v3'
Expand All @@ -341,8 +341,6 @@ jobs:

- name: 'setup-gcloud'
uses: './'
with:
export_default_credentials: true

- id: 'gcloud'
shell: 'bash'
Expand All @@ -352,14 +350,14 @@ jobs:
multi_credentials:
if: ${{ github.event_name == 'push' || github.repository == github.event.pull_request.head.repo.full_name && github.actor != 'dependabot[bot]' }}
name: 'with two setup gcloud with different SA'
runs-on: '${{ matrix.os }}'
strategy:
fail-fast: false
matrix:
os:
- 'ubuntu-latest'
- 'windows-latest'
- 'macos-latest'
runs-on: '${{ matrix.os }}'

permissions:
id-token: 'write'
Expand Down Expand Up @@ -396,8 +394,6 @@ jobs:
uses: ./
with:
version: 'latest'
service_account_email: ${{ secrets.SETUP_GCLOUD_IT_EMAIL }}
sethvargo marked this conversation as resolved.
Show resolved Hide resolved
service_account_key: ${{ secrets.SETUP_GCLOUD_IT_KEY }}

# current SA should be SETUP_GCLOUD_IT_EMAIL
- name: 'check current SA'
Expand Down