first commit for storage-benchmark CI #1
Workflow file for this run
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
name: Benchmarks | |
on: | |
workflow_dispatch: | |
push: | |
branches: [main, eran/ci/benchmark-tests] | |
jobs: | |
deploy-benchmark-teardown: | |
runs-on: ubuntu-latest | |
permissions: | |
contents: "read" | |
id-token: "write" | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v3 | |
# - name: Set a unique run identifier | |
# run: echo "UNIQE_ID=${{ github.run_number }}-${{ github.run_attempt }}" >> $GITHUB_ENV | |
- id: "auth" | |
name: "Authenticate to Google Cloud" | |
uses: "google-github-actions/auth@v1" | |
with: | |
credentials_json: "${{ secrets.GOOGLE_CI_SA_CREDENTIALS }}" | |
- id: "get-credentials" | |
name: Get GKE credentials | |
uses: "google-github-actions/get-gke-credentials@v1" | |
with: | |
cluster_name: "${{ secrets.GKE_CI_CLUSTER_NAME }}" | |
location: "${{ secrets.GKE_CI_CLUSTER_REGION }}" | |
- name: Run load test | |
run: sh -c "deployments/storage-benchmark/run_benchmark.bash 5m" | |
- name: Parse load test results | |
run: | | |
pwd | |
ls -al | |
# - name: Clean the deployment | |
# if: always() | |
# run: helm delete --namespace papyrus papyrus-${UNIQE_ID} |