Skip to content

Commit

Permalink
trigger on push/cron
Browse files Browse the repository at this point in the history
  • Loading branch information
0xtzData committed May 26, 2024
1 parent fe3b544 commit 382a47f
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 4 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/e2e_new.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ concurrency:
cancel-in-progress: true

on:
schedule:
- cron: '*/180 * * * *'
workflow_dispatch:
workflow_call:

Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/e2e_scoutcloud.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@ concurrency:
cancel-in-progress: true

on:
push:
schedule:
- cron: '*/180 * * * *'
workflow_dispatch:
inputs:
rpc_url:
Expand Down
9 changes: 5 additions & 4 deletions tests/e2e/tests/scoutcloud/ScoutCloud.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -62,16 +62,17 @@ const getInstance = async (r, instance) => {
}

const deleteInstances = async (r, instances) => {
for (const i of instances['items']) {
l.info(`Removing instance: ${i['instance_id']}`)
const resp = await r.delete(`/api/v1/instances/${i['instance_id']}`)
for (const i of instances[`items`]) {
l.info(`Removing instance: ${i[`instance_id`]}`)
// eslint-disable-next-line no-await-in-loop
const resp = await r.delete(`/api/v1/instances/${i[`instance_id`]}`)
// eslint-disable-next-line no-await-in-loop
const body = await resp.body()
l.debug(`url requested: ${resp.url()}`)
l.debug(`body: ${body}`)
}
}


const updateStatus = async (r, instance, cfg) => {
const resp = await r.post(`/api/v1/instances/${instance}/status:update`, {
data: cfg,
Expand Down

0 comments on commit 382a47f

Please sign in to comment.