Skip to content

Commit

Permalink
ci: use anycable-go PRO
Browse files Browse the repository at this point in the history
(cherry picked from commit 3e4ad51)
  • Loading branch information
palkan committed Sep 29, 2021
1 parent c758d49 commit c009965
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 3 deletions.
14 changes: 12 additions & 2 deletions .github/workflows/system_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ jobs:
DATABASE_URL: postgres://postgres:postgres@localhost:5432
CHROME_URL: http://localhost:3000
RAILS_ENV: test
ANYCABLE_RPC_HOST: 0.0.0.0:50051
services:
postgres:
image: postgres:13.0
Expand All @@ -31,6 +32,17 @@ jobs:
image: browserless/chrome:1.31-chrome-stable
ports: ["3000:3000"]
options: -e CONNECTION_TIMEOUT=600000
anycable:
image: ghcr.io/anycable/anycable-go-pro:1.1.0-beta.2
credentials:
username: ${{ github.repository_owner }}
password: ${{ secrets.ghcr_password }}
ports: ["8080:8080"]
options: --add-host=host.docker.internal:host-gateway
env:
ANYCABLE_HOST: "0.0.0.0"
ANYCABLE_REDIS_URL: redis://redis:6379/0
ANYCABLE_RPC_HOST: host.docker.internal:50051
steps:
- uses: actions/checkout@v2
- uses: actions/cache@v1
Expand Down Expand Up @@ -69,8 +81,6 @@ jobs:
- name: Run RSpec
run: |
bundle exec rails db:prepare
bundle exec rails g anycable:download --bin-path=./bin
bundle exec rails webpacker:compile
./bin/anycable-go --host "0.0.0.0" &
export CABLE_URL="ws://$(hostname):8080/cable"
bundle exec rspec --tag type:system
2 changes: 1 addition & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ services:
command: bundle exec sidekiq -C config/sidekiq.yml

ws: &ws
image: anycable/anycable-go:1.1
image: ghcr.io/anycable/anycable-go-pro:1.1.0-beta.2
ports:
- '8080:8080'
environment: &ws_environment
Expand Down

0 comments on commit c009965

Please sign in to comment.