-
Notifications
You must be signed in to change notification settings - Fork 252
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #376 from ruby-ldap/HarlemSquirrel-patch-1
Create first GitHub action
- Loading branch information
Showing
5 changed files
with
126 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
# This workflow uses actions that are not certified by GitHub. | ||
# They are provided by a third-party and are governed by | ||
# separate terms of service, privacy policy, and support | ||
# documentation. | ||
# This workflow will download a prebuilt Ruby version, install dependencies and run tests with Rake | ||
# For more information see: https://github.com/marketplace/actions/setup-ruby-jruby-and-truffleruby | ||
|
||
name: Test | ||
|
||
on: | ||
pull_request: | ||
push: | ||
branches: | ||
- master | ||
|
||
jobs: | ||
test: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
ruby: | ||
- "2.5" | ||
- "2.6" | ||
- "2.7" | ||
- "jruby-9.2" | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Run tests with Ruby ${{ matrix.ruby }} | ||
run: docker-compose run ci-${{ matrix.ruby }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
#!/bin/bash | ||
|
||
set -e | ||
|
||
gem install bundler | ||
bundle check || bundle install | ||
bundle exec rake ci |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,81 @@ | ||
version: "3.8" | ||
|
||
networks: | ||
integration_test_network: | ||
|
||
services: | ||
openldap: | ||
image: osixia/openldap:1.4.0 | ||
networks: | ||
integration_test_network: | ||
aliases: | ||
- ldap.example.org | ||
- cert.mismatch.example.org | ||
environment: | ||
LDAP_TLS_VERIFY_CLIENT: "try" | ||
LDAP_SEED_INTERNAL_LDIF_PATH: "/ldif" | ||
healthcheck: | ||
test: ["CMD", "ldapsearch", "-x", "-s", "base"] | ||
interval: 60s | ||
start_period: 30s | ||
timeout: 5s | ||
retries: 1 | ||
hostname: "ldap.example.org" | ||
volumes: | ||
- ./test/fixtures/ldif:/ldif:ro | ||
|
||
ci-2.5: | ||
image: ruby:2.5 | ||
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.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 | ||
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-jruby-9.2: | ||
image: jruby:9.2 | ||
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters