Skip to content
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 @@
name: CI

on:
push:
pull_request:

jobs:
test:
runs-on: ${{ matrix.os }}

strategy:
fail-fast: false
matrix:
os:
- ubuntu-latest
- macos-latest
ruby-version:
- '3.0'
- '3.1'
- '3.2'
- '3.3'
- '3.4'

steps:
- uses: actions/checkout@v6
- run: ./bin/setup-deps
- uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby-version }}
bundler-cache: true
- run: bundle exec rake spec
8 changes: 0 additions & 8 deletions .travis.yml

This file was deleted.

6 changes: 2 additions & 4 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,8 @@ end

group :test do
gem 'rspec', ">=3.0"
gem 'wrong', path: "../wrong"
gem 'files', path: "../files"
# gem 'wrong', github: "alexch/wrong"
# gem 'files', github: "alexch/files"
gem 'wrong', path: "tmp/wrong"
gem 'files', path: "tmp/files"
end

gem 'wdm', '>= 0.1.0' if Gem.win_platform?
27 changes: 27 additions & 0 deletions bin/setup-deps
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
#!/bin/bash
set -e

cd "$(dirname "$0")/.."

mkdir -p tmp

echo "at=info msg=\"checking out test dependencies\""

if [ -d "tmp/wrong" ]; then
echo "at=info msg=\"wrong already exists, pulling latest\""
git -C tmp/wrong pull
else
echo "at=info msg=\"cloning wrong\""
git clone https://github.com/alexch/wrong.git tmp/wrong
rm -f tmp/wrong/wrong-java.gemspec
fi

if [ -d "tmp/files" ]; then
echo "at=info msg=\"files already exists, pulling latest\""
git -C tmp/files pull
else
echo "at=info msg=\"cloning files\""
git clone https://github.com/alexch/files.git tmp/files
fi

echo "at=info msg=\"dependencies ready\""
4 changes: 0 additions & 4 deletions geminstaller.yml

This file was deleted.

Loading