Added Github actions #1
Workflow file for this run
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: Local chain tests | |
on: | |
push: | |
branches: [ master ] | |
pull_request: | |
jobs: | |
tests: | |
strategy: | |
fail-fast: true | |
runs-on: ubuntu-latest | |
name: Build and Test | |
steps: | |
- uses: actions/checkout@v3 | |
name: Check out repository | |
- name: Checkout submodules | |
run: git submodule update --init --recursive | |
- uses: actions/setup-node@v2 | |
name: Set up Node.js | |
with: | |
node-version: "lts/gallium" | |
- name: Install graph CLI | |
run: | | |
npm install -g @graphprotocol/graph-cli | |
- uses: actions/setup-python@v4 | |
with: | |
python-version: '3.8' | |
cache: pip | |
- name: Install Foundry | |
uses: foundry-rs/foundry-toolchain@v1 | |
- name: Start Docker Compose | |
run: | | |
docker-compose up -d | |
working-directory: ./tests | |
- name: Installing python requirements | |
run: | | |
pip install -r requirements.txt | |
working-directory: ./tests | |
- run: | | |
yarn | |
./contract_init.sh | |
name: Build and Test | |
working-directory: ./tests |