-
Notifications
You must be signed in to change notification settings - Fork 2
66 lines (56 loc) · 1.77 KB
/
main.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
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