Skip to content

chore(ci): test start-stop aws instance #136

chore(ci): test start-stop aws instance

chore(ci): test start-stop aws instance #136

Workflow file for this run

name: Continuous Integration
on:
workflow_dispatch:
pull_request:
push:
branches:
- main
permissions:
contents: read
jobs:
# test-javascript:
# name: JavaScript Tests
# runs-on: ubuntu-latest
#
# steps:
# - name: Checkout
# id: checkout
# uses: actions/checkout@eef61447b9ff4aafe5dcd4e0bbf5d482be7e7871
#
# - name: Setup Node.js
# id: setup-node
# uses: actions/setup-node@39370e3970a6d050c480ffad4ff0ed4d3fdee5af
# with:
# node-version-file: .node-version
# cache: npm
#
# - name: Install Dependencies
# id: npm-ci
# run: npm ci
#
# - name: Check Format
# id: npm-format-check
# run: npm run format:check
#
# - name: Lint
# id: npm-lint
# run: npm run lint
#
# - name: Test
# id: npm-ci-test
# run: npm run ci-test
#
# test-action-spawn-terminate:
# name: GitHub Actions Test (spawn -> terminate)
# runs-on: ubuntu-latest
# strategy:
# matrix:
# provider: [ aws, hyperstack ]
# fail-fast: false
# steps:
# - name: Checkout
# id: checkout
# uses: actions/checkout@eef61447b9ff4aafe5dcd4e0bbf5d482be7e7871
#
# - 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 }}
# backend: ${{ matrix.provider }}
# profile: ci-test
#
# - 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 }}
test-action-start-stop:
name: GitHub Actions Test (start -> stop)
runs-on: ubuntu-latest
steps:
- name: Checkout
id: checkout
uses: actions/checkout@eef61447b9ff4aafe5dcd4e0bbf5d482be7e7871
- 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 }}
backend: aws
profile: ci-test-start-stop
- name: Test runner is alive
uses: ./.github/workflows/registered_runner.yml
with:
runner-name: ci-persistent-runner
- 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: ci-persistent-runner