Enabling parsing contracts for solidity 0.4+ #479
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: Check Tests | |
on: [push] | |
jobs: | |
tests: | |
runs-on: ubuntu-latest | |
env: | |
SOLC_SWITCH_GITHUB_TOKEN: ${{ secrets.SOLC_SWITCH_GITHUB_TOKEN }} | |
FULL_NODE_TEST_URL: ${{ secrets.FULL_NODE_TEST_URL }} | |
ARCHIVE_NODE_TEST_URL: ${{ secrets.ARCHIVE_NODE_TEST_URL }} | |
ETHERSCAN_API_KEYS: ${{ secrets.ETHERSCAN_API_KEYS }} | |
steps: | |
- name: Checkout Source | |
uses: actions/checkout@v3 | |
- name: Set up Go | |
uses: actions/setup-go@v4 | |
with: | |
go-version: '1.22' | |
- name: Checkout submodules | |
run: make submodules | |
- name: Install solc-select | |
run: | | |
python3 -m venv solgoenv | |
source solgoenv/bin/activate | |
pip3 install solc-select | |
pip3 install slither-analyzer | |
- name: Setup solc | |
run: | | |
source solgoenv/bin/activate | |
solc-select install 0.8.19 | |
solc-select use 0.8.19 | |
- name: Run Tests | |
run: | | |
source solgoenv/bin/activate | |
solc-select install 0.8.19 | |
solc-select use 0.8.19 | |
make test |