Skip to content

Commit 44f3452

Browse files
authored
ci: create rspec workflow (#4)
* ci: create rspec workflow * gem: replace eth-patched, ref #2 * ci: disable bundler cache
1 parent c58fd47 commit 44f3452

File tree

2 files changed

+35
-1
lines changed

2 files changed

+35
-1
lines changed

.github/workflows/test.yml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
---
2+
name: Test
3+
4+
on:
5+
pull_request:
6+
branches:
7+
- main
8+
push:
9+
branches:
10+
- main
11+
12+
jobs:
13+
test:
14+
runs-on: ${{ matrix.os }}
15+
strategy:
16+
fail-fast: false
17+
matrix:
18+
os: [ubuntu-latest, macos-latest]
19+
ruby: ['2.7', '3.0']
20+
steps:
21+
- uses: actions/checkout@v2
22+
- uses: ruby/setup-ruby@v1
23+
with:
24+
ruby-version: ${{ matrix.ruby }}
25+
- name: Install Dependencies
26+
run: |
27+
bundle install
28+
- name: Run Tests
29+
run: |
30+
bundle exec rspec spec

Gemfile

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,8 @@ git_source(:github) { |repo_name| "https://github.com/#{repo_name}" }
77
# OmniAuth is what this strategy is providing
88
gem "omniauth", ">= 2.0"
99
# Use Ruby-Eth for signature recovery
10-
gem 'eth-patched', '>= 0.4.14'
10+
gem 'eth', '>= 0.4.16'
11+
12+
# Spec tests
13+
gem 'rspec', '>= 3.10.0'
14+
gem 'rack-test'

0 commit comments

Comments
 (0)