Sha256: 82e37608c53c4c93b590b4a4156bff8f5be3f20965c8109aef4ce28aca189e9c

Contents?: true

Size: 957 Bytes

Versions: 2

Compression:

Stored size: 957 Bytes

Contents

name: Ruby

on: [push,pull_request]

jobs:
  build:
    runs-on: ubuntu-latest
    steps:
    - uses: actions/checkout@v2
    - name: Set up Ruby
      uses: ruby/setup-ruby@v1
      with:
        ruby-version: 3.0.2
    - name: Run the default task
      run: |
        gem install bundler
        bundle install
        bundle exec rake
    - name: Run the actual server
      run: |
        bundle exec ruby bin/right_speed -c snippets/test.ru &
        sleep 5
        output=$(curl -s http://127.0.0.1:8080/)
        kill %1
        echo "Output: $output"
        test "$output" = "Yaaay"
    - name: Run rackup
      # Using production not to use middlewares for development (lint, etc)
      run: |
        bundle exec rackup snippets/test.ru -s right_speed -E production -O Host=127.0.0.1 -O Port=8081 &
        sleep 5
        output=$(curl -s http://127.0.0.1:8081/)
        kill %1
        echo "Output: $output"
        test "$output" = "Yaaay"

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
right_speed-0.2.0 .github/workflows/main.yml
right_speed-0.1.0 .github/workflows/main.yml