Fix broadcast logging in rails 7.1+ #51
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build | |
on: | |
push: | |
branches: | |
- master | |
pull_request: | |
workflow_dispatch: | |
jobs: | |
rspec: | |
if: ${{ !contains(github.event.head_commit.message, '[ci skip tests]') }} | |
runs-on: ubuntu-latest | |
env: | |
BUNDLE_JOBS: 4 | |
BUNDLE_RETRY: 3 | |
BUNDLE_FORCE_RUBY_PLATFORM: 1 | |
CI: true | |
BUNDLE_GEMFILE: gemfiles/${{ matrix.gemfile }}.gemfile | |
COVERAGE: "true" | |
COVERALLS_REPO_TOKEN: ${{ secrets.github_token }} | |
services: | |
redis: | |
image: redis:6.0-alpine | |
ports: ["6379:6379"] | |
options: --health-cmd="redis-cli ping" --health-interval 1s --health-timeout 3s --health-retries 30 | |
strategy: | |
fail-fast: false | |
matrix: | |
ruby: ["3.0"] | |
gemfile: ["rails6"] | |
include: | |
- ruby: "3.2" | |
gemfile: "rails7" | |
- ruby: "2.7" | |
gemfile: "rails6" | |
- ruby: "3.1" | |
gemfile: "railsmaster" | |
- ruby: "2.7" | |
gemfile: "rails60" | |
- ruby: "3.2" | |
gemfile: "anycablemaster" | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Install system deps | |
run: | | |
sudo apt-get update | |
sudo apt-get install libsqlite3-dev | |
- uses: ruby/setup-ruby@v1 | |
with: | |
ruby-version: ${{ matrix.ruby }} | |
bundler-cache: true | |
- name: Install Coveralls reporter | |
run: | | |
curl -L https://github.com/coverallsapp/coverage-reporter/releases/latest/download/coveralls-linux.tar.gz | tar zxv | |
- name: Run RSpec | |
continue-on-error: ${{ matrix.allow_failure }} | |
run: | | |
bundle exec rake spec | |
./coveralls -p --job-flag=ruby-${{ matrix.ruby }}-${{ matrix.gemfile }} | |
- name: Run compatibility specs | |
continue-on-error: ${{ matrix.allow_failure }} | |
run: | | |
bundle exec rake spec:compatibility | |
./coveralls -p --job-flag=compatibility-${{ matrix.ruby }}-${{ matrix.gemfile }} | |
- name: Run conformance tests with Anyt | |
env: | |
BUNDLE_GEMFILE: "gemfiles/anyt.gemfile" | |
run: | | |
bundle install | |
bundle exec anyt --self-check | |
coverage: | |
needs: rspec | |
runs-on: ubuntu-latest | |
env: | |
COVERALLS_REPO_TOKEN: ${{ secrets.github_token }} | |
steps: | |
- name: Install Coveralls reporter | |
run: | | |
curl -L https://github.com/coverallsapp/coverage-reporter/releases/latest/download/coveralls-linux.tar.gz | tar zxv | |
- name: Finilize Coveralls build | |
run: | | |
./coveralls -d |