Skip to content

Daily Tests Run - PROD #271

Daily Tests Run - PROD

Daily Tests Run - PROD #271

Workflow file for this run

name: Daily Tests Run - PROD
on:
schedule:
- cron: '0 1 * * *'
jobs:
run-tests:
runs-on: ubuntu-latest
environment: 'PROD'
env:
ALLURE_ENDPOINT: 'https://inworld.testops.cloud/'
ALLURE_PROJECT_ID: '35'
ALLURE_JOB_RUN_ID: ''
ALLURE_RESULTS: 'build/allure-results'
AUTH_IDENTITY_PROVIDER: ${{ vars.AUTH_IDENTITY_PROVIDER }}
AUTH_SERVICE_ACCOUNT: ${{ vars.AUTH_SERVICE_ACCOUNT }}
NODE_SDK_INWORLD_ENGINE_HOST: ${{ vars.NODE_SDK_INWORLD_ENGINE_HOST }}
ENV: 'PROD'
permissions:
contents: 'read'
id-token: 'write'
steps:
- name: Setup node
uses: actions/setup-node@v3
with:
node-version: '18.x'
- name: Checkout source code
uses: actions/checkout@v3
- id: "auth"
name: "Authenticate to Google Cloud"
uses: "google-github-actions/auth@v2"
with:
token_format: "access_token"
workload_identity_provider: "${{ env.AUTH_IDENTITY_PROVIDER }}"
service_account: "${{ env.AUTH_SERVICE_ACCOUNT }}"
- id: "secrets"
uses: 'google-github-actions/get-secretmanager-secrets@v2'
with:
secrets: |-
ALLURE_TOKEN:inworld-ai-prod/allure-token
STUDIO_INTEGRATIONS_API_KEY:inworld-ai-prod/nodejs-sdk-integration-studio-key
STUDIO_INTEGRATIONS_API_SECRET:inworld-ai-prod/nodejs-sdk-integration-studio-secret
- name: Install Packages
run: yarn install
- name: Install inworld/nodejs-sdk
run: yarn add @inworld/nodejs-sdk
- name: Setup Allure TestOps
if: always()
uses: allure-framework/[email protected]
with:
allure-endpoint: ${{ env.ALLURE_ENDPOINT }}
allure-token: '${{ steps.secrets.outputs.ALLURE_TOKEN }}'
allure-project-id: ${{ env.ALLURE_PROJECT_ID }}
continue-on-error: true
- name: Run Tests
env:
STUDIO_INTEGRATIONS_API_KEY: '${{ steps.secrets.outputs.STUDIO_INTEGRATIONS_API_KEY }}'
STUDIO_INTEGRATIONS_API_SECRET: '${{ steps.secrets.outputs.STUDIO_INTEGRATIONS_API_SECRET }}'
run: yarn test:e2e
- name: Upload Allure Results
env:
ALLURE_TOKEN: '${{ steps.secrets.outputs.ALLURE_TOKEN }}'
if: always()
run: allurectl upload ${{ env.ALLURE_RESULTS }}