Skip to content

Commit 8adb9a9

Browse files
committed
CI on GitHub Actions
1 parent 36f2d23 commit 8adb9a9

File tree

5 files changed

+60
-16
lines changed

5 files changed

+60
-16
lines changed

.github/workflows/ci.yml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
pull_request:
6+
7+
jobs:
8+
test:
9+
runs-on: ${{ matrix.os }}
10+
11+
strategy:
12+
fail-fast: false
13+
matrix:
14+
os:
15+
- ubuntu-latest
16+
- macos-latest
17+
ruby-version:
18+
- '3.0'
19+
- '3.1'
20+
- '3.2'
21+
- '3.3'
22+
- '3.4'
23+
24+
steps:
25+
- uses: actions/checkout@v6
26+
- run: ./bin/setup-deps
27+
- uses: ruby/setup-ruby@v1
28+
with:
29+
ruby-version: ${{ matrix.ruby-version }}
30+
bundler-cache: true
31+
- run: bundle exec rake spec

.travis.yml

Lines changed: 0 additions & 8 deletions
This file was deleted.

Gemfile

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,8 @@ end
1414

1515
group :test do
1616
gem 'rspec', ">=3.0"
17-
gem 'wrong', path: "../wrong"
18-
gem 'files', path: "../files"
19-
# gem 'wrong', github: "alexch/wrong"
20-
# gem 'files', github: "alexch/files"
17+
gem 'wrong', path: "tmp/wrong"
18+
gem 'files', path: "tmp/files"
2119
end
2220

2321
gem 'wdm', '>= 0.1.0' if Gem.win_platform?

bin/setup-deps

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
#!/bin/bash
2+
set -e
3+
4+
cd "$(dirname "$0")/.."
5+
6+
mkdir -p tmp
7+
8+
echo "at=info msg=\"checking out test dependencies\""
9+
10+
if [ -d "tmp/wrong" ]; then
11+
echo "at=info msg=\"wrong already exists, pulling latest\""
12+
git -C tmp/wrong pull
13+
else
14+
echo "at=info msg=\"cloning wrong\""
15+
git clone https://github.com/alexch/wrong.git tmp/wrong
16+
rm -f tmp/wrong/wrong-java.gemspec
17+
fi
18+
19+
if [ -d "tmp/files" ]; then
20+
echo "at=info msg=\"files already exists, pulling latest\""
21+
git -C tmp/files pull
22+
else
23+
echo "at=info msg=\"cloning files\""
24+
git clone https://github.com/alexch/files.git tmp/files
25+
fi
26+
27+
echo "at=info msg=\"dependencies ready\""

geminstaller.yml

Lines changed: 0 additions & 4 deletions
This file was deleted.

0 commit comments

Comments
 (0)