-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Jonny Browning
committed
Nov 29, 2022
1 parent
1d2be39
commit 55aeef2
Showing
1 changed file
with
0 additions
and
49 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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: | ||
|