2024-08-23 04:43:26 -07:00
|
|
|
name: Destroy Benchmark Env
|
|
|
|
|
|
|
|
on:
|
|
|
|
schedule:
|
2024-08-30 07:49:50 -07:00
|
|
|
- cron: '0 4 * * *'
|
2024-08-23 04:43:26 -07:00
|
|
|
workflow_dispatch:
|
|
|
|
|
|
|
|
permissions:
|
|
|
|
id-token: write
|
|
|
|
contents: read
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
build:
|
|
|
|
runs-on: ubuntu-latest
|
2024-08-25 23:58:17 -07:00
|
|
|
environment: benchmarking
|
2024-08-23 04:43:26 -07:00
|
|
|
|
|
|
|
steps:
|
|
|
|
- name: Checkout
|
|
|
|
uses: actions/checkout@v4.1.1
|
|
|
|
|
|
|
|
- name: Azure login
|
|
|
|
uses: azure/login@v2.1.1
|
|
|
|
with:
|
|
|
|
client-id: ${{ secrets.BENCHMARK_ARM_CLIENT_ID }}
|
|
|
|
tenant-id: ${{ secrets.BENCHMARK_ARM_TENANT_ID }}
|
|
|
|
subscription-id: ${{ secrets.BENCHMARK_ARM_SUBSCRIPTION_ID }}
|
|
|
|
|
2024-08-27 07:55:18 -07:00
|
|
|
- run: corepack enable
|
2024-08-23 04:43:26 -07:00
|
|
|
- uses: actions/setup-node@v4.0.2
|
|
|
|
with:
|
|
|
|
node-version: 20.x
|
2024-08-27 07:55:18 -07:00
|
|
|
cache: 'pnpm'
|
2024-08-23 04:43:26 -07:00
|
|
|
|
|
|
|
- name: Install dependencies
|
|
|
|
run: pnpm install --frozen-lockfile
|
|
|
|
|
|
|
|
- name: Destroy cloud env
|
|
|
|
run: pnpm destroy-cloud-env
|
|
|
|
working-directory: packages/@n8n/benchmark
|