Skip to content

Commit

Permalink
workflows: use nodesource/aws-eco-runner
Browse files Browse the repository at this point in the history
  • Loading branch information
RafaelGSS committed Jun 1, 2024
1 parent 0243998 commit 72f270b
Show file tree
Hide file tree
Showing 6 changed files with 17 additions and 142 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/bench.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,9 +59,9 @@ jobs:
uses: actions/checkout@v4

- name: Start Runner
uses: ./.github/workflows/runner-starter
uses: nodesource/aws-eco-runner@v1.0.0-beta.3
with:
instance_id: 'i-065f0f848eb1615ae'
instances_id: '["i-065f0f848eb1615ae"]'
action: 'start'
aws_default_region: 'us-west-2'

Expand Down Expand Up @@ -220,8 +220,8 @@ jobs:
uses: actions/checkout@v4

- name: Stop Runner
uses: ./.github/workflows/runner-starter
uses: nodesource/aws-eco-runner@v1.0.0-beta.3
with:
instance_id: 'i-065f0f848eb1615ae'
instances_id: '["i-065f0f848eb1615ae"]'
action: 'stop'
aws_default_region: 'us-west-2'
10 changes: 5 additions & 5 deletions .github/workflows/run_all.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ on:
node-versions:
required: true
type: string
default: '["18.0.0","18.20.1","18.20.2","20.0.0","20.13.0","20.13.1","21.0.0","21.7.2","21.7.3","22.0.0","22.1.0"]'
default: '["18.0.0","18.20.2","18.20.3","20.0.0","20.13.1","20.14.0","21.0.0","21.7.2","21.7.3","22.0.0","22.1.0","22.2.0"]'
description: 'The Node.js Versions (should be a JSON array)'

permissions:
Expand All @@ -29,9 +29,9 @@ jobs:
uses: actions/checkout@v4

- name: Start Runner
uses: ./.github/workflows/runner-starter
uses: nodesource/aws-eco-runner@v1.0.0-beta.3
with:
instance_id: 'i-065f0f848eb1615ae'
instances_id: '["i-065f0f848eb1615ae"]'
action: 'start'
aws_default_region: 'us-west-2'

Expand Down Expand Up @@ -364,8 +364,8 @@ jobs:
uses: actions/checkout@v4

- name: Stop Runner
uses: ./.github/workflows/runner-starter
uses: nodesource/aws-eco-runner@v1.0.0-beta.3
with:
instance_id: 'i-065f0f848eb1615ae'
instances_id: '["i-065f0f848eb1615ae"]'
action: 'stop'
aws_default_region: 'us-west-2'
22 changes: 0 additions & 22 deletions .github/workflows/runner-starter/action.yml

This file was deleted.

103 changes: 0 additions & 103 deletions .github/workflows/runner-starter/instance_start_stop.bash

This file was deleted.

8 changes: 4 additions & 4 deletions .github/workflows/runner_warmer.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,9 @@ jobs:
role-to-assume: arn:aws:iam::800406105498:role/RafaelGSS-nodejs-bench-operations

- name: Start Runner
uses: ./.github/workflows/runner-starter
uses: nodesource/aws-eco-runner@v1.0.0-beta.3
with:
instance_id: 'i-065f0f848eb1615ae'
instances_id: '["i-065f0f848eb1615ae"]'
action: 'start'
aws_default_region: 'us-west-2'

Expand All @@ -35,8 +35,8 @@ jobs:
run: echo "Keep the runner active"

- name: Stop Runner
uses: ./.github/workflows/runner-starter
uses: nodesource/aws-eco-runner@v1.0.0-beta.3
with:
instance_id: 'i-065f0f848eb1615ae'
instances_id: '["i-065f0f848eb1615ae"]'
action: 'stop'
aws_default_region: 'us-west-2'
8 changes: 4 additions & 4 deletions scripts/generate-run-all.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -72,9 +72,9 @@ jobs:
uses: actions/checkout@v4
- name: Start Runner
uses: ./.github/workflows/runner-starter
uses: nodesource/aws-eco-runner@v1.0.0-beta.3
with:
instance_id: 'i-065f0f848eb1615ae'
instances_id: '["i-065f0f848eb1615ae"]'
action: 'start'
aws_default_region: 'us-west-2'
${benchJobs.join('')}
Expand All @@ -92,9 +92,9 @@ jobs:
uses: actions/checkout@v4
- name: Stop Runner
uses: ./.github/workflows/runner-starter
uses: nodesource/aws-eco-runner@v1.0.0-beta.3
with:
instance_id: 'i-065f0f848eb1615ae'
instances_id: '["i-065f0f848eb1615ae"]'
action: 'stop'
aws_default_region: 'us-west-2'
`;
Expand Down

0 comments on commit 72f270b

Please sign in to comment.