Skip to content

fix: README

fix: README #62

Workflow file for this run

name: CI
on: [push]
jobs:
tests:
strategy:
matrix:
ruby-version:
- "3.1"
- "3.2.2"
rails-version:
- "6.1"
- "7.0"
- "main"
env:
RAILS_VERSION: "${{ matrix.rails-version }}"
TEST_MSG_ID: "msg-${{ matrix.rails-version }}-${{ matrix.ruby-version }}"
MERCURE_DOMAIN: ${{ secrets.MERCURE_DOMAIN }}
MERCURE_PUBLISHER_KEY: ${{ secrets.MERCURE_PUBLISHER_KEY }}
MERCURE_SUBSCRIBER_KEY: ${{ secrets.MERCURE_SUBSCRIBER_KEY }}
FANOUT_FASTLY_KEY: ${{ secrets.FANOUT_FASTLY_KEY }}
FANOUT_SERVICE_ID: ${{ secrets.FANOUT_SERVICE_ID }}
FANOUT_SERVICE_URL: ${{ secrets.FANOUT_SERVICE_URL }}
ANYCABLE_URL: ${{ secrets.ANYCABLE_URL }}
ANYCABLE_BROADCAST_KEY: ${{ secrets.ANYCABLE_BROADCAST_KEY }}
name: ${{ format('Tests (Ruby {0}, Rails {1})', matrix.ruby-version, matrix.rails-version) }}
runs-on: ubuntu-latest
continue-on-error: true
steps:
- uses: actions/checkout@v1
- name: Install Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby-version }}
bundler-cache: true
- name: Print context
run: echo "$GITHUB_CONTEXT"
- name: Bundle
run: bundle install
- name: Prepare test database
run: |
bin/rails db:create db:migrate
- name: Run tests [mercure]
env:
TURBO_TRAIN_TEST_SERVER: mercure
run: |
bin/test test/**/*_test.rb
- name: Run tests [fanout]
env:
TURBO_TRAIN_TEST_SERVER: fanout
run: |
bin/test test/**/*_test.rb
- name: Run tests [anycable]
env:
TURBO_TRAIN_TEST_SERVER: anycable
run: |
bin/test test/**/*_test.rb