Adding ability to trigger a small set of tests for performance measurements
ADD
.github/workflows/performance_metrics_cron.yml
+env:
+ ARM_CLIENT_ID: ${{ secrets.ARM_CLIENT_ID }}
+ ARM_CLIENT_SECRET: ${{ secrets.ARM_CLIENT_SECRET }}
+ ARM_ENVIRONMENT: public
+ ARM_LOCATION: westus
+ ARM_SUBSCRIPTION_ID: ${{ secrets.ARM_SUBSCRIPTION_ID }}
+ ARM_TENANT_ID: ${{ secrets.ARM_TENANT_ID }}
+ AWS_ACCESS_KEY_ID: ' ${{ secrets.AWS_ACCESS_KEY_ID }}'
+ AWS_REGION: us-west-2
+ AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
+ CLOUDSDK_CORE_DISABLE_PROMPTS: 1
+ DIGITALOCEAN_TOKEN: ${{ secrets.DIGITALOCEAN_TOKEN }}
+ GOOGLE_CREDENTIALS: ${{ secrets.GCP_CREDENTIALS }}
+ GOOGLE_PROJECT: ${{ secrets.GCP_PROJECT_ID }}
+ GOOGLE_REGION: us-central1
+ GOOGLE_ZONE: us-central1-a
+ PACKET_AUTH_TOKEN: ${{ secrets.PACKET_AUTH_TOKEN }}
+ PULUMI_ACCESS_TOKEN: ${{ secrets.PULUMI_ACCESS_TOKEN }}
+ PULUMI_API: https://api.pulumi-staging.io
+ PULUMI_ENABLE_RESOURCE_REFERENCES: "1"
+ PULUMI_TEST_OWNER: moolumi
+ SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}
+jobs:
+ providers:
+ name: providers
+ runs-on: ${{ matrix.platform }}
+ steps:
+ - name: Install DotNet ${{ matrix.dotnet-version }}
+ uses: actions/setup-dotnet@v1
+ with:
+ dotnet-version: ${{matrix.dotnet-version}}
+ - name: Install Node.js ${{ matrix.node-version }}
+ uses: actions/setup-node@v1
+ with:
+ node-version: ${{matrix.node-version}}
+ - name: Install Python ${{ matrix.python-version }}
+ uses: actions/setup-python@v1
+ with:
+ python-version: ${{matrix.python-version}}
+ - name: Install Go ${{ matrix.go-version }}
+ uses: actions/setup-go@v1
+ with:
+ go-version: ${{matrix.go-version}}
+ - name: Install Python Deps
+ run: |-
+ pip3 install virtualenv==20.0.23
+ pip3 install pipenv
+ - name: Configure AWS Credentials
+ uses: aws-actions/configure-aws-credentials@v1
+ with:
+ aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
+ aws-region: ${{ env.AWS_REGION }}
+ aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
+ role-duration-seconds: 3600
+ role-session-name: examples@githubActions
+ role-to-assume: ${{ secrets.AWS_CI_ROLE_ARN }}
+ - uses: actions/checkout@v2
+ - name: Install Latest Stable Pulumi CLI
+ uses: pulumi/setup-pulumi@v2
+ - run: echo "Currently Pulumi $(pulumi version) is installed"
+ - name: Install Testing Dependencies
+ run: make ensure
+ - name: Running ${{ matrix.clouds }}${{ matrix.languages }} Tests
+ run: make specific_test_set TestSet=${{ matrix.clouds }}${{ matrix.languages
+ }}
+ strategy:
+ fail-fast: false
+ matrix:
+ clouds:
+ - Aws
+ dotnet-version:
+ - 3.1.301
+ go-version:
+ - 1.16.x
+ languages:
+ - Cs
+ - Js
+ - Ts
+ - Py
+ - Fs
+ node-version:
+ - 13.x
+ platform:
+ - ubuntu-latest
+ python-version:
+ - "3.7"
+name: Run Performance Metrics Cron Job
+"on":
+ workflow_dispatch: {}
+ schedule:
+ - cron: 0 9 * * *

Adding ability to trigger a small set of tests for performance measurements