From 2f403893f976dcefc9e4ecdd3b66efc0b3d57214 Mon Sep 17 00:00:00 2001 From: Marcin Maciaszczyk Date: Thu, 21 Nov 2024 12:48:42 +0100 Subject: [PATCH 1/4] setup gcloud in workflow --- .github/workflows/e2e.yaml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.github/workflows/e2e.yaml b/.github/workflows/e2e.yaml index 720cf264..0249eef5 100644 --- a/.github/workflows/e2e.yaml +++ b/.github/workflows/e2e.yaml @@ -30,3 +30,9 @@ jobs: run: make install-cli - name: Print Plural CLI version run: plural version + - name: Set up Google Cloud SDK + uses: google-github-actions/setup-gcloud@v2 + with: + version: ">= 363.0.0" + - name: Print Google Cloud SDK info + run: gcloud info \ No newline at end of file From 0411c376f28cabc2ddad5a08a91ca044bb5b1d4f Mon Sep 17 00:00:00 2001 From: Marcin Maciaszczyk Date: Thu, 21 Nov 2024 13:23:38 +0100 Subject: [PATCH 2/4] add jobs for all providers --- .github/workflows/e2e.yaml | 52 +++++++++++++++++++++++++++++++++++--- 1 file changed, 49 insertions(+), 3 deletions(-) diff --git a/.github/workflows/e2e.yaml b/.github/workflows/e2e.yaml index 0249eef5..399089ef 100644 --- a/.github/workflows/e2e.yaml +++ b/.github/workflows/e2e.yaml @@ -10,8 +10,8 @@ env: GOPATH: /home/runner/go/ GOBIN: /home/runner/go/bin jobs: - build: - name: Test `plural up` + plural-up-gcp: + name: Test `plural up` / GCP runs-on: ubuntu-latest steps: - name: Checkout @@ -35,4 +35,50 @@ jobs: with: version: ">= 363.0.0" - name: Print Google Cloud SDK info - run: gcloud info \ No newline at end of file + run: gcloud info + plural-up-aws: + name: Test `plural up` / AWS + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v3 + with: + fetch-depth: 0 + - name: Setup Go + uses: actions/setup-go@v4.1.0 + with: + go-version-file: go.mod + - name: Add GOBIN to PATH + run: echo $GOBIN >> $GITHUB_PATH + - name: Setup Terraform + uses: hashicorp/setup-terraform@v3 + - name: Setup Plural CLI + run: make install-cli + - name: Print Plural CLI version + run: plural version + - name: Print AWS CLI version + run: aws --version + plural-up-azure: + name: Test `plural up` / Azure + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v3 + with: + fetch-depth: 0 + - name: Setup Go + uses: actions/setup-go@v4.1.0 + with: + go-version-file: go.mod + - name: Add GOBIN to PATH + run: echo $GOBIN >> $GITHUB_PATH + - name: Setup Terraform + uses: hashicorp/setup-terraform@v3 + - name: Setup Plural CLI + run: make install-cli + - name: Print Plural CLI version + run: plural version + - name: Set up Azure CLI + run: curl -sL https://aka.ms/InstallAzureCLIDeb | sudo bash + - name: Print Azure CLI version + run: az --version \ No newline at end of file From 80b0d7e81b76046019fdeb17149e0f26a83a27a1 Mon Sep 17 00:00:00 2001 From: Marcin Maciaszczyk Date: Thu, 21 Nov 2024 13:26:21 +0100 Subject: [PATCH 3/4] simplify workflow --- .github/workflows/e2e.yaml | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/.github/workflows/e2e.yaml b/.github/workflows/e2e.yaml index 399089ef..bbbfce7d 100644 --- a/.github/workflows/e2e.yaml +++ b/.github/workflows/e2e.yaml @@ -30,12 +30,8 @@ jobs: run: make install-cli - name: Print Plural CLI version run: plural version - - name: Set up Google Cloud SDK - uses: google-github-actions/setup-gcloud@v2 - with: - version: ">= 363.0.0" - - name: Print Google Cloud SDK info - run: gcloud info + - name: Print Google Cloud CLI version + run: gcloud --version plural-up-aws: name: Test `plural up` / AWS runs-on: ubuntu-latest @@ -78,7 +74,5 @@ jobs: run: make install-cli - name: Print Plural CLI version run: plural version - - name: Set up Azure CLI - run: curl -sL https://aka.ms/InstallAzureCLIDeb | sudo bash - name: Print Azure CLI version run: az --version \ No newline at end of file From 6948dde852c58773dcfef57e52e3b5d9e1f50223 Mon Sep 17 00:00:00 2001 From: Marcin Maciaszczyk Date: Thu, 21 Nov 2024 13:29:56 +0100 Subject: [PATCH 4/4] use built-in terraform binary --- .github/workflows/e2e.yaml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/workflows/e2e.yaml b/.github/workflows/e2e.yaml index bbbfce7d..d89abe8e 100644 --- a/.github/workflows/e2e.yaml +++ b/.github/workflows/e2e.yaml @@ -24,12 +24,12 @@ jobs: go-version-file: go.mod - name: Add GOBIN to PATH run: echo $GOBIN >> $GITHUB_PATH - - name: Setup Terraform - uses: hashicorp/setup-terraform@v3 - name: Setup Plural CLI run: make install-cli - name: Print Plural CLI version run: plural version + - name: Print Terraform version + run: terraform --version - name: Print Google Cloud CLI version run: gcloud --version plural-up-aws: @@ -46,12 +46,12 @@ jobs: go-version-file: go.mod - name: Add GOBIN to PATH run: echo $GOBIN >> $GITHUB_PATH - - name: Setup Terraform - uses: hashicorp/setup-terraform@v3 - name: Setup Plural CLI run: make install-cli - name: Print Plural CLI version run: plural version + - name: Print Terraform version + run: terraform --version - name: Print AWS CLI version run: aws --version plural-up-azure: @@ -68,11 +68,11 @@ jobs: go-version-file: go.mod - name: Add GOBIN to PATH run: echo $GOBIN >> $GITHUB_PATH - - name: Setup Terraform - uses: hashicorp/setup-terraform@v3 - name: Setup Plural CLI run: make install-cli - name: Print Plural CLI version run: plural version + - name: Print Terraform version + run: terraform --version - name: Print Azure CLI version run: az --version \ No newline at end of file