Skip to content

Upgrade prep

Upgrade prep #772

Workflow file for this run

# 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/[email protected]
- name: Run brownie tests
run: cd solidity && brownie test tests/local -s