Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
52 changes: 38 additions & 14 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,15 @@ on:
request_id:
description: 'Slab request ID'
type: string
fork_user:
description: 'User login of forked repo'
type: string
fork_git_ref:
description: 'Git ref to checkout from fork'
type: string

env:
REPOSITORY: ${{ inputs.fork_user || github.repository_owner}}/caesar-cipher

jobs:
tests1:
Expand All @@ -36,23 +45,38 @@ jobs:
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 }}"
- uses: actions/checkout@v2
- name: Set up home
run: |
echo "HOME=/home/ubuntu" >> ${GITHUB_ENV}
- name: Install Rust
if: ${{ !cancelled() }}
uses: actions-rs/toolchain@v1
echo "Fork user: ${{ github.event.inputs.fork_user }}"
echo "Fork git ref: ${{ github.event.inputs.fork_git_ref }}"

- name: Checkout repository
uses: actions/checkout@v2
with:
toolchain: stable
override: true
- name: Run test suite with cargo
run: cargo test
repository: ${{ env.REPOSITORY }}
ref: ${{ inputs.fork_git_ref }}

- 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 45
#
run: sleep 120

# intermediate_test:
# needs: tests1
# runs-on: ubuntu-latest
Expand Down
2 changes: 1 addition & 1 deletion ci/slab.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[profile.cpu]
region = "eu-west-3"
image_id = "ami-021d41cbdefc0c994" # AWS Linux x86
image_id = "ami-05e8e219ac7e82eba" # ubuntu 22.04
instance_type = "t3.micro"
subnet_id = "subnet-0e042c7621461f754"

Expand Down