Skip to content

Commit

Permalink
ci: remove terratest
Browse files Browse the repository at this point in the history
  • Loading branch information
Jonny Browning committed Nov 29, 2022
1 parent 1d2be39 commit 55aeef2
Showing 1 changed file with 0 additions and 49 deletions.
49 changes: 0 additions & 49 deletions .github/workflows/pr-checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,55 +28,6 @@ jobs:
- uses: pre-commit/[email protected]
name: Pre-commit checks

terratest:
runs-on: ubuntu-latest
steps:
- uses: hashicorp/setup-terraform@v2
with:
terraform_wrapper: false

- name: Check out repository
uses: actions/checkout@v2
with:
ref: ${{ github.event.pull_request.head.ref }}

- name: Set up Go 1.18
uses: actions/setup-go@v1
with:
go-version: 1.18

- id: 'auth'
name: 'Authenticate to Google Cloud'
uses: 'google-github-actions/auth@v0'
with:
credentials_json: '${{ secrets.GOOGLE_CREDENTIALS }}'

- name: 'Set up Cloud SDK'
uses: 'google-github-actions/setup-gcloud@v0'

- name: Copy pipeline.json to GCS
run: "gsutil cp test/pipeline.json gs://${{ secrets.TEST_BUCKET }}/terraform-google-scheduled-vertex-pipelines/${{ github.run_id }}/pipeline.json"

- name: Copy pipeline.yaml to AR
run: >
curl -X POST
-H "Authorization: Bearer $(gcloud auth print-access-token)"
-F tags=latest
-F content=@test/pipeline.yaml
"https://europe-west2-kfp.pkg.dev/${{ secrets.TEST_PROJECT_ID }}/${{ secrets.TEST_AR_REPO }}"
- name: Run Terratest
run: make test
env:
TF_VAR_project: ${{ secrets.TEST_PROJECT_ID }}
TF_VAR_gcs_bucket: ${{ secrets.TEST_BUCKET }}
TF_VAR_object_name: "terraform-google-scheduled-vertex-pipelines/${{ github.run_id }}/pipeline.json"
TF_VAR_ar_repository: ${{ secrets.TEST_AR_REPO }}

- name: Delete pipeline.json from GCS after test
if: always()
run: "gsutil rm gs://${{ secrets.TEST_BUCKET }}/terraform-google-scheduled-vertex-pipelines/${{ github.run_id }}/pipeline.json"

generate-readme:
runs-on: ubuntu-latest
steps:
Expand Down

0 comments on commit 55aeef2

Please sign in to comment.