-
Notifications
You must be signed in to change notification settings - Fork 88
57 lines (55 loc) · 1.35 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
54
55
56
57
---
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-latest, macos-latest]
ruby: ['3.1', '3.2', '3.3']
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:
INFURA_TOKEN: ${{ secrets.INFURA_TOKEN }}
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v4
with:
fail_ci_if_error: false
token: ${{ secrets.CODECOV_TOKEN }}