Sha256: bdc1661f1a0d4067cebcc145de18a5a45f2134886f0e6daa061198b92cc1278d

Contents?: true

Size: 1.58 KB

Versions: 2

Compression:

Stored size: 1.58 KB

Contents

name: Tests

on: push

jobs:
  example_rack:
    runs-on: ubuntu-latest
    name: Rack example
    steps:
    - uses: actions/checkout@v3
    - uses: ruby/setup-ruby@v1
      with:
        bundler-cache: true
        ruby-version: '2.7'
        working-directory: examples/rack
    - run: bundle exec parklife build
      working-directory: examples/rack
    - run: test -f build/index.html
      working-directory: examples/rack

  example_rails:
    runs-on: ubuntu-latest
    name: Rails example
    steps:
    - uses: actions/checkout@v3
    - uses: ruby/setup-ruby@v1
      with:
        bundler-cache: true
        ruby-version: '2.7'
        working-directory: examples/rails
    - run: ./parklife-build
      working-directory: examples/rails
    - run: test -f build/index.html
      working-directory: examples/rails

  example_sinatra:
    runs-on: ubuntu-latest
    name: Sinatra example
    steps:
    - uses: actions/checkout@v3
    - uses: ruby/setup-ruby@v1
      with:
        bundler-cache: true
        ruby-version: '2.7'
        working-directory: examples/sinatra
    - run: bundle exec parklife build
      working-directory: examples/sinatra
    - run: test -f build/index.html
      working-directory: examples/sinatra

  rspec:
    runs-on: ubuntu-latest
    strategy:
      matrix:
        ruby:
          - '2.7'
          - '3.0'
          - '3.1'
          - '3.2'
    name: Ruby ${{ matrix.ruby }} RSpec
    steps:
    - uses: actions/checkout@v3
    - uses: ruby/setup-ruby@v1
      with:
        bundler-cache: true
        ruby-version: ${{ matrix.ruby }}
    - run: bundle exec rspec

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
parklife-0.4.0 .github/workflows/tests.yml
parklife-0.3.0 .github/workflows/tests.yml