mirror of
https://github.com/Azure/cosmos-explorer.git
synced 2026-08-30 02:08:40 +01:00
d1c122d300
* Update project to Node.js 22 Standardize local development and GitHub Actions on Node.js 22.x. Update Node typings to the latest release compatible with the project's TypeScript 4.9 compiler. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Copilot-Session: 3d0e0c37-ce73-44b6-a068-e24e87cf8fbd * Remove .nvmrc created by copilot. --------- Copilot-Session: 3d0e0c37-ce73-44b6-a068-e24e87cf8fbd
39 lines
1.2 KiB
YAML
39 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 }}
|
|
E2ETESTS_RESOURCEGROUP_NAME : ${{ secrets.E2ETESTS_RESOURCEGROUP_NAME }}
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- 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 22.x
|
|
uses: actions/setup-node@v4
|
|
with:
|
|
node-version: 22.x
|
|
- run: npm ci
|
|
- run: node utils/cleanupDBs.js |