Skip to content

Commit d361d1b

Browse files
Update action config
1 parent 4703a85 commit d361d1b

File tree

1 file changed

+6
-47
lines changed

1 file changed

+6
-47
lines changed

.github/workflows/test.yml

Lines changed: 6 additions & 47 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
# This workflow will download a prebuilt Ruby version, install dependencies and run tests with Rake
66
# For more information see: https://github.com/marketplace/actions/setup-ruby-jruby-and-truffleruby
77

8-
name: Ruby
8+
name: Test
99

1010
on:
1111
pull_request:
@@ -15,56 +15,15 @@ on:
1515

1616
jobs:
1717
test:
18-
env:
19-
INTEGRATION: openldap
2018
runs-on: ubuntu-latest
21-
services:
22-
openldap:
23-
image: osixia/openldap:1.4.0
24-
env:
25-
LDAP_SEED_INTERNAL_LDIF_PATH: /ldif
26-
LDAP_TLS_VERIFY_CLIENT: try
27-
ports:
28-
- 389:389
29-
- 636:636
30-
options: >-
31-
-v ${{ github.workspace }}/test/fixtures/ldif:/ldif
3219
strategy:
3320
matrix:
3421
ruby:
3522
- "2.5"
36-
- "2.6"
37-
- "2.7"
38-
- "jruby-9.2"
23+
#- "2.6"
24+
#- "2.7"
25+
#- "jruby-9.2"
3926
steps:
4027
- uses: actions/checkout@v2
41-
- name: Set up Ruby ${{ matrix.ruby }}
42-
# To automatically get bug fixes and new Ruby versions for ruby/setup-ruby,
43-
# change this to (see https://github.com/ruby/setup-ruby#versioning):
44-
# uses: ruby/setup-ruby@v1
45-
uses: ruby/setup-ruby@ec106b438a1ff6ff109590de34ddc62c540232e0
46-
with:
47-
ruby-version: ${{ matrix.ruby }}
48-
# - name: Create OpenLDAP container
49-
# run: ->
50-
# docker run \
51-
# --hostname ldap.example.org \
52-
# --env LDAP_TLS_VERIFY_CLIENT=try \
53-
# -p 389:389 \
54-
# -p 636:636 \
55-
# -v "$(pwd)"/test/fixtures/ldif:/container/service/slapd/assets/config/bootstrap/ldif/custom \
56-
# --name openldap \
57-
# --detach \
58-
# osixia/openldap:1.3.0 \
59-
# --copy-service \
60-
# --loglevel debug \
61-
- name: Set up /etc/hosts
62-
run: |
63-
echo '127.0.0.1 ldap.example.org' | sudo tee -a /etc/hosts
64-
sudo apt-get install -y ldap-utils
65-
ldapsearch -x -H ldap://localhost:389 -b '' -s base namingContexts || \
66-
ldapsearch -x -H ldap://ldap.example.org:389 -b '' -s base namingContexts
67-
- name: Install dependencies
68-
run: bundle check || bundle install
69-
- name: Run tests
70-
run: bundle exec rake ci
28+
- name: Run tests with Ruby ${{ matrix.ruby }}
29+
run: docker-compose run ci-ruby-${{ matrix.ruby }}

0 commit comments

Comments
 (0)