Skip to content

Commit

Permalink
Merge pull request #433 from HarlemSquirrel/test-docker-compose
Browse files Browse the repository at this point in the history
Update test.yml
  • Loading branch information
HarlemSquirrel authored Oct 29, 2024
2 parents 7f060e1 + ed83108 commit ca78b20
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 30 deletions.
7 changes: 3 additions & 4 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,15 +19,14 @@ jobs:
strategy:
matrix:
ruby:
- "2.6"
- "2.7"
- "3.0"
- "3.1"
- "3.2"
- "3.3"
- "jruby-9.3"
- "jruby-9.4"
- "truffleruby-22"
- "truffleruby"
steps:
- uses: actions/checkout@v2
- name: Run tests with Ruby ${{ matrix.ruby }}
run: docker-compose run ci-${{ matrix.ruby }}
run: docker compose run ci-${{ matrix.ruby }}
36 changes: 10 additions & 26 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
version: "3.8"

networks:
integration_test_network:

Expand All @@ -24,22 +22,8 @@ services:
volumes:
- ./test/fixtures/ldif:/ldif:ro

ci-2.6:
image: ruby:2.7
entrypoint: /code/ci-run.sh
environment:
INTEGRATION: openldap
INTEGRATION_HOST: ldap.example.org
depends_on:
- openldap
networks:
integration_test_network:
volumes:
- .:/code
working_dir: /code

ci-2.7:
image: ruby:2.7
ci-3.0:
image: ruby:3.0
entrypoint: /code/ci-run.sh
environment:
INTEGRATION: openldap
Expand All @@ -52,8 +36,8 @@ services:
- .:/code
working_dir: /code

ci-3.0:
image: ruby:3.0
ci-3.1:
image: ruby:3.1
entrypoint: /code/ci-run.sh
environment:
INTEGRATION: openldap
Expand All @@ -66,8 +50,8 @@ services:
- .:/code
working_dir: /code

ci-3.1:
image: ruby:3.1
ci-3.2:
image: ruby:3.2
entrypoint: /code/ci-run.sh
environment:
INTEGRATION: openldap
Expand All @@ -80,8 +64,8 @@ services:
- .:/code
working_dir: /code

ci-3.2:
image: ruby:3.2
ci-3.3:
image: ruby:3.3
entrypoint: /code/ci-run.sh
environment:
INTEGRATION: openldap
Expand All @@ -95,8 +79,8 @@ services:
working_dir: /code

# https://github.com/flavorjones/truffleruby/pkgs/container/truffleruby
ci-truffleruby-22:
image: ghcr.io/flavorjones/truffleruby:22.3.1
ci-truffleruby:
image: ghcr.io/flavorjones/truffleruby:stable
entrypoint: /code/ci-run.sh
environment:
INTEGRATION: openldap
Expand Down

0 comments on commit ca78b20

Please sign in to comment.