|
5 | 5 | # This workflow will download a prebuilt Ruby version, install dependencies and run tests with Rake |
6 | 6 | # For more information see: https://github.com/marketplace/actions/setup-ruby-jruby-and-truffleruby |
7 | 7 |
|
8 | | -name: Ruby |
| 8 | +name: Test |
9 | 9 |
|
10 | 10 | on: |
11 | 11 | pull_request: |
|
15 | 15 |
|
16 | 16 | jobs: |
17 | 17 | test: |
18 | | - env: |
19 | | - INTEGRATION: openldap |
20 | 18 | 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 |
32 | 19 | strategy: |
33 | 20 | matrix: |
34 | 21 | ruby: |
35 | 22 | - "2.5" |
36 | | - - "2.6" |
37 | | - - "2.7" |
38 | | - - "jruby-9.2" |
| 23 | + #- "2.6" |
| 24 | + #- "2.7" |
| 25 | + #- "jruby-9.2" |
39 | 26 | steps: |
40 | 27 | - 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