Merge pull request #569 from PeggyJV/collin/v5-upgrade #787
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
# This workflow will do a clean install of node dependencies, build the source code and run tests across different versions of node | |
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions | |
name: Brownie test | |
on: | |
push: | |
branches: [master, main] | |
pull_request: | |
branches: [master, main] | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
NODE_OPTIONS: --max_old_space_size=8192 | |
jobs: | |
local-tests: | |
runs-on: ubuntu-20.04 | |
strategy: | |
matrix: | |
node-version: [ 16.x ] | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: actions/cache@v2 | |
with: | |
path: | | |
~/.solcx | |
~/.vvm | |
~/.brownie | |
key: compiler-cache | |
- uses: actions/setup-node@v1 | |
with: | |
node-version: ${{ matrix.node-version }} | |
- run: npm install -g ganache-cli | |
- uses: actions/setup-python@v2 | |
with: | |
python-version: 3.8 | |
- run: cd solidity && pip install -r requirements.txt | |
- name: Install Open Zepplin | |
continue-on-error: true | |
run: cd solidity && brownie pm install OpenZeppelin/openzeppelin-contracts@4.3.2 | |
- name: Run brownie tests | |
run: cd solidity && brownie test tests/local -s | |