Skip to content

Commit

Permalink
test with fewer matrix options for GHA setup
Browse files Browse the repository at this point in the history
  • Loading branch information
kraila committed Oct 26, 2023
1 parent d21840e commit bed7074
Showing 1 changed file with 18 additions and 7 deletions.
25 changes: 18 additions & 7 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,6 @@ on:

env:
app: sidekiq_publisher
DATABASE_URL: postgres://ci@postgres/test
REDIS_URL: redis://redis:6379/1
RAILS_ENV: test

jobs:
lint:
Expand Down Expand Up @@ -40,28 +37,37 @@ jobs:
strategy:
fail-fast: false
matrix:
rails: [ '5.1', '5.2', '6.0', '6.1', '7.0', '7.1' ]
sidekiq: [ '5.2', '6.0', '6.1', '6.2', '6.3', '6.4' ]
rails: [ '5.1', '5.2'] #, '6.0', '6.1', '7.0', '7.1' ]
sidekiq: [ '5.2', '6.0'] #, '6.1', '6.2', '6.3', '6.4' ]

env:
DATABASE_URL: postgres://ci@postgres/test
REDIS_URL: redis://redis:6379/1
RAILS_ENV: test

services:
postgres:
image: postgres:12.6
env:
POSTGRES_USER: ci
POSTGRES_DB: test
POSTGRES_USER: postgres
POSTGRES_DB: sidekiq_publisher_test
POSTGRES_HOST_AUTH_METHOD: trust
options: >-
--health-cmd pg_isready
--health-interval 10s
--health-timeout 5s
--health-retries 5
ports:
- 5432:5432
redis:
image: redis:5.0.9-alpine
options: >-
--health-cmd "redis-cli ping | grep PONG"
--health-interval 10s
--health-timeout 5s
--health-retries 5
ports:
- 6379:6379

steps:
- name: Checkout the code
Expand All @@ -87,6 +93,11 @@ jobs:
matrix:
ddtrace: [ '0.x', '1.0' ]

env:
DATABASE_URL: postgres://ci@postgres/test
REDIS_URL: redis://redis:6379/1
RAILS_ENV: test

services:
postgres:
image: postgres:12.6
Expand Down

0 comments on commit bed7074

Please sign in to comment.