Spec #1218
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
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@v3 | |
- 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: Patch Geth # https://github.com/ethereum/go-ethereum/pull/27360 | |
run: | | |
git clone https://github.com/q9f/go-ethereum.git -b q9f/params/shanghai | |
pushd go-ethereum/ | |
make geth | |
popd | |
- name: Run Geth | |
run: | | |
./go-ethereum/build/bin/geth --dev --http --ipcpath /tmp/geth.ipc & | |
- 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 }} |