From 77fe31e780021628a893c3dce81a0e6cc2d42a88 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?David=20Test=C3=A9?= Date: Thu, 2 May 2024 15:31:52 +0200 Subject: [PATCH] chore(ci): add ci test case for custom aws config --- .github/workflows/ci.yml | 33 ++++++++++++++++++++++++++++++++- ci/slab.toml | 5 +---- 2 files changed, 33 insertions(+), 5 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 715fb69..8ea918e 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -43,7 +43,7 @@ jobs: run: npm run ci-test test-action: - name: GitHub Actions Test + name: GitHub Actions test runs-on: ubuntu-latest strategy: matrix: @@ -75,3 +75,34 @@ jobs: slab-url: ${{ secrets.SLAB_BASE_URL_PRE_PROD }} job-secret: ${{ secrets.JOB_SECRET }} label: ${{ steps.test-start.outputs.label }} + + test-custom-config: + name: GitHub Actions test custom config + runs-on: ubuntu-latest + steps: + - name: Checkout + id: checkout + uses: actions/checkout@v4 + + - name: Test start instance + id: test-start + uses: ./ + with: + mode: start + github-token: ${{ secrets.SLAB_ACTION_TOKEN }} + slab-url: ${{ secrets.SLAB_BASE_URL_PRE_PROD }} + job-secret: ${{ secrets.JOB_SECRET }} + region: eu-west-3 + ec2-image-id: ami-01d21b7be69801c2f + ec2-instance-type: t3.2xlarge + + - name: Test stop instance + id: test-stop + if: ${{ always() }} + uses: ./ + with: + mode: stop + github-token: ${{ secrets.SLAB_ACTION_TOKEN }} + slab-url: ${{ secrets.SLAB_BASE_URL_PRE_PROD }} + job-secret: ${{ secrets.JOB_SECRET }} + label: ${{ steps.test-start.outputs.label }} diff --git a/ci/slab.toml b/ci/slab.toml index 5db5621..08fd3c2 100644 --- a/ci/slab.toml +++ b/ci/slab.toml @@ -8,7 +8,4 @@ instance_type = "t3.2xlarge" [backend.hyperstack.ci-test] environment_name = "canada" image_name = "Ubuntu Server 22.04 LTS R535 CUDA 12.2" -flavor_name = "m" - -[profile] -[command] +flavor_name = "n1-cpu-small"