Skip to content

Simple test

Simple test #378

Workflow file for this run

name: Simple test
on:
# Triggers the workflow on push for staging branch
push:
branches:
- staging
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
inputs:
instance_id:
description: 'Instance ID'
type: string
instance_image_id:
description: 'Instance AMI ID'
type: string
instance_type:
description: 'Instance product type'
type: string
runner_name:
description: 'Action runner name'
type: string
request_id:
description: 'Slab request ID'
type: string
fork_repo:
description: 'Name of forked repo'
type: string
fork_git_sha:
description: 'Git SHA to checkout from fork'
type: string
env:
REPOSITORY: ${{ inputs.fork_user || github.repository_owner}}/caesar-cipher
jobs:
tests1:
#runs-on: ubuntu-latest
runs-on: ${{ github.event.inputs.runner_name }}
steps:
- name: Instance configuration used
run: |
echo "IDs: ${{ github.event.inputs.instance_id }}"
echo "AMI: ${{ github.event.inputs.instance_image_id }}"
echo "Type: ${{ github.event.inputs.instance_type }}"
echo "Request ID: ${{ github.event.inputs.request_id }}"
echo "Matrix item: ${{ github.event.inputs.matrix_item }}"
echo "Fork user: ${{ github.event.inputs.fork_repo }}"
echo "Fork git sha: ${{ github.event.inputs.fork_git_sha }}"
- name: Checkout repository
uses: actions/checkout@v2
with:
repository: ${{ inputs.fork_repo }}
ref: ${{ inputs.fork_git_sha }}
- name: Show last commit
run: |
sudo apt install -y git
git show
# - name: Set up home
# run: |
# echo "HOME=/home/ubuntu" >> ${GITHUB_ENV}
#
# - name: Install Rust
# if: ${{ !cancelled() }}
# uses: actions-rs/toolchain@v1
# with:
# toolchain: stable
# override: true
#
# - name: Run test suite with cargo
# run: cargo test
- name: EC2 activity tracker check
#run: echo 999999^999999 | bc
run: sleep 120
# intermediate_test:
# needs: tests1
# runs-on: ubuntu-latest
# steps:
# - name: A intermediate sleep
# run: sleep 45
#
# tests2:
# runs-on: ${{ github.event.inputs.runner_name }}
# needs: intermediate_test
# steps:
# - uses: actions/checkout@v2
# #- name: Run test suite with cargo
# # run: cargo test
# - name: Another sleep
# run: echo 999999^999999 | bc