Sha256: 56d185bc4e4f5d3b47699ef87861fad4eb173ab004d4ca0202b016113c2cfbab

Contents?: true

Size: 1.23 KB

Versions: 7

Compression:

Stored size: 1.23 KB

Contents

name: test

on: [push, pull_request]

jobs:
  test:
    runs-on: ubuntu-latest
    env:
      PUNK_ENV: test
      COVERALLS_REPO_TOKEN: "${{secrets.COVERALLS_REPO_TOKEN}}"
      IPSTACK_ACCESS_KEY: "${{secrets.IPSTACK_ACCESS_KEY}}"
      USERSTACK_API_KEY: "${{secrets.USERSTACK_API_KEY}}"
      DATABASE_URL: "postgres://postgres:postgres@localhost/punk_test"

    services:
      postgres:
        image: postgres
        env:
          POSTGRES_PASSWORD: postgres
        options: >-
          --health-cmd pg_isready
          --health-interval 10s
          --health-timeout 5s
          --health-retries 5
        ports:
          - 5432:5432
      memcached:
        image: memcached
        ports:
          - 11211:11211
        options: --health-cmd "timeout 5 bash -c 'cat < /dev/null > /dev/udp/127.0.0.1/11211'" --health-interval 10s --health-timeout 5s --health-retries 5
    steps:
    - uses: actions/checkout@v2
    - name: Set up Ruby
      uses: ruby/setup-ruby@v1
      with:
        ruby-version: 2.5.8
        bundler-cache: true
    - name: Lint files
      run: bundle exec rubocop
    - name: Run specs
      run: |
        bundle exec ruby ./bin/punk db create
        bundle exec ruby ./bin/punk db migrate
        bundle exec rspec

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
punk-0.3.6 .github/workflows/test.yml
punk-0.3.5 .github/workflows/test.yml
punk-0.3.4 .github/workflows/test.yml
punk-0.3.3 .github/workflows/test.yml
punk-0.3.2 .github/workflows/test.yml
punk-0.3.1 .github/workflows/test.yml
punk-0.2.0 .github/workflows/test.yml