From b5d7e4f5422d18fb9062b53daa8298b6d511569b Mon Sep 17 00:00:00 2001 From: Vladimir Dementyev Date: Thu, 12 Sep 2024 21:08:25 -0700 Subject: [PATCH] ci: run anyt tests against Rails 8 --- .github/workflows/test.yml | 28 ++++++++++++++++++++++++++++ gemfiles/anyt.gemfile | 2 ++ 2 files changed, 30 insertions(+) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 8d788ae..549f074 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -65,6 +65,34 @@ jobs: run: | bundle install bundle exec anyt --self-check + anyt: + 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/anyt.gemfile" + services: + redis: + image: redis:7.0-alpine + ports: ["6379:6379"] + options: --health-cmd="redis-cli ping" --health-interval 1s --health-timeout 3s --health-retries 30 + steps: + - uses: actions/checkout@v4 + - 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: Run conformance tests with Anyt + run: | + bundle exec anyt --self-check + coverage: needs: rspec runs-on: ubuntu-latest diff --git a/gemfiles/anyt.gemfile b/gemfiles/anyt.gemfile index 51ea2b9..2244b78 100644 --- a/gemfiles/anyt.gemfile +++ b/gemfiles/anyt.gemfile @@ -1,5 +1,7 @@ source "https://rubygems.org" do gem "anycable-rails", path: ".." gem "anyt", "~> 1.3.1" + + gem "rails", git: "https://github.com/palkan/rails.git", branch: "refactor/action-cable-server-adapterization" gem "puma" end