Sha256: 5e1bd757084bd86c2f0b807ef859a291c12f642322c227d00ebcffde95be91bf

Contents?: true

Size: 1.14 KB

Versions: 1

Compression:

Stored size: 1.14 KB

Contents

---
name: test
on: [push, pull_request]
jobs:
  test:
    runs-on: ubuntu-latest
    strategy:
      matrix:
        entry:
          - { ruby: 2.6.2, postgresql: 11 }
          - { ruby: 3.1.1, postgresql: 11 }
          - { ruby: 3.1.1, postgresql: 14 }
    name: test (ruby=${{ matrix.entry.ruby }}, postgresql=${{ matrix.entry.postgresql }})
    steps:
      - uses: actions/checkout@v2
      - uses: ruby/setup-ruby@v1
        with:
          ruby-version: ${{ matrix.entry.ruby }}
      - uses: browser-actions/setup-geckodriver@latest
        with:
          token: ${{ secrets.GITHUB_TOKEN }}
      - run: geckodriver --version
      - uses: harmon758/postgresql-action@v1
        with:
          postgresql version: ${{ matrix.entry.postgresql }}
          postgresql db: slack_ruby_bot_server_test
          postgresql user: test
          postgresql password: password
      - name: Test
        uses: GabrielBB/xvfb-action@v1
        env:
          DATABASE_ADAPTER: activerecord
          DATABASE_URL: postgres://test:password@localhost/slack_ruby_bot_server_test
        with:
          run: |
            bundle install
            bundle exec rake spec

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
slack-ruby-bot-server-2.0.1 .github/workflows/test-postgresql.yml