mirror of
https://github.com/Azure/cosmos-explorer.git
synced 2026-07-21 12:57:38 +01:00
e3b77ec1f2
* Update Az CLI to use new secrets. * Add test step for Az login * Remove test step. Fix up account names in test code. * Fix the account prefix env. variable. * Fix it in the CI config as well. * Try to fix the CI config for some tests * Clean up access tokens for NoSQL. * Disable most tests while sorting out account setup. Add debug tracing. * Comment out most tests. * Set RG Name var in CI config. * Fix up tenant id. * Enable other API tests * e-enable more tests. * Re-enable remaining tests. * Remove all of the test.skip() calls. * Remove debug traces. * Remove function to retrieve SQL RBAC token, this is handled by the CI config now. * Fix rbac token detection for table and resource token tests. * Minor cleanup and fixing the cleanup config. * Preview site and storage changes. Cleanup script changes. * Clean up before PR. * Fix resource group name in test results email.
41 lines
1.2 KiB
YAML
41 lines
1.2 KiB
YAML
# This is a basic workflow to help you get started with Actions
|
|
|
|
name: Cleanup End to End Account Resources
|
|
|
|
on:
|
|
# Allows you to run this workflow manually from the Actions tab
|
|
workflow_dispatch:
|
|
schedule:
|
|
# Once every day at 7 AM PST
|
|
- cron: "0 13 * * *"
|
|
|
|
permissions:
|
|
id-token: write
|
|
contents: read
|
|
|
|
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
|
|
jobs:
|
|
# This workflow contains a single job called "build"
|
|
cleanupaccounts:
|
|
name: "Cleanup Test Database Accounts"
|
|
runs-on: ubuntu-latest
|
|
env:
|
|
AZURE_SUBSCRIPTION_ID: ${{ secrets.E2ETESTS_SUBSCRIPTION_ID }}
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
env:
|
|
E2ETESTS_RESOURCEGROUP_NAME : ${{ secrets.E2ETESTS_RESOURCEGROUP_NAME }}
|
|
|
|
- name: "Az CLI login"
|
|
uses: azure/login@v2
|
|
with:
|
|
client-id: ${{ secrets.E2ETESTS_CLIENT_ID }}
|
|
tenant-id: ${{ secrets.E2ETESTS_TENANT_ID }}
|
|
subscription-id: ${{ secrets.E2ETESTS_SUBSCRIPTION_ID }}
|
|
|
|
- name: Use Node.js 20.x
|
|
uses: actions/setup-node@v4
|
|
with:
|
|
node-version: 20.x
|
|
- run: npm ci
|
|
- run: node utils/cleanupDBs.js |