-
Notifications
You must be signed in to change notification settings - Fork 88
53 lines (51 loc) · 1.21 KB
/
spec.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
---
name: Spec
on:
pull_request:
branches:
- main
push:
branches:
- main
schedule:
-
cron: "45 3 * * *"
jobs:
test:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-22.04, macos-12]
ruby: ['3.0', '3.1', '3.2']
steps:
- uses: actions/checkout@v4
- uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby }}
bundler-cache: false
- name: MacOs Dependencies
run: |
brew tap ethereum/ethereum
brew install --verbose pkg-config automake autogen ethereum solidity
if: startsWith(matrix.os, 'macOS')
- name: Ubuntu Dependencies
run: |
sudo add-apt-repository -y ppa:ethereum/ethereum
sudo apt-get update
sudo apt-get install ethereum solc libyaml-dev
if: startsWith(matrix.os, 'Ubuntu')
- name: Run Geth
run: |
geth --dev --http --ipcpath /tmp/geth.ipc &
disown &
- name: Gem Dependencies
run: |
git submodule update --init
bundle install
- name: Run Tests
run: |
bundle exec rspec
env:
COVERAGE: true
INFURA_TOKEN: ${{ secrets.INFURA_TOKEN }}