Skip to content

Perform CI with Actions #2

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 16 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
31 changes: 31 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
# 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: Ruby

on:
push:
branches: [ master ]
pull_request:
branches: [ master ]

jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
ruby: [2.1]
steps:
- uses: actions/checkout@v2
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby }}
bundler: 1
- run: bundle install
- name: Run tests
run: script/cibuild-apacheds
2 changes: 1 addition & 1 deletion Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,5 @@ group :test, :development do
end

group :test do
gem "mocha"
gem "mocha", '1.3.0'
end
5 changes: 3 additions & 2 deletions github-ldap.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,9 @@ Gem::Specification.new do |spec|

spec.add_dependency 'net-ldap', '~> 0.16.0'

spec.add_development_dependency "bundler", "~> 1.3"
spec.add_development_dependency "bundler", "~> 1.17.3"
spec.add_development_dependency 'ladle'
spec.add_development_dependency 'minitest', '~> 5'
spec.add_development_dependency 'minitest', '~> 5.10.3'
spec.add_development_dependency 'mocha', '~> 1.3.0'
spec.add_development_dependency "rake"
end
6 changes: 6 additions & 0 deletions script/cibuild-apacheds
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,12 @@
set -e
set -x

HOSTS_LINE="127.0.0.1 ghe.dev ad1.ghe.dev ad2.ghe.dev"
if [ -z "$(grep ghe.dev /etc/hosts)"]
then
echo "$HOSTS_LINE" | sudo tee -a /etc/hosts > /dev/null
fi

cd `dirname $0`/..

bundle exec rake