Skip to content

Deployment script for the contract #173

Deployment script for the contract

Deployment script for the contract #173

Workflow file for this run

name: test
on:
push:
branches: [main]
pull_request:
env:
FOUNDRY_PROFILE: ci
jobs:
check:
strategy:
fail-fast: true
name: Foundry project
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
submodules: recursive
- name: Install Foundry
uses: foundry-rs/foundry-toolchain@v1
with:
version: nightly
- name: Run Forge build
run: |
forge --version
forge build
id: build
- name: Run Forge tests
run: |
forge test -vvv
id: test
- name: Python tests
run: |
python3 -m venv venv
source venv/bin/activate
cd tests/python
pip install -r requirements.txt
python test.py
lint:
strategy:
matrix:
node-version: [16.x]
os: [ubuntu-latest]
name: Code linting
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 16
cache: 'npm'
cache-dependency-path: ./package-lock.json
- run: npm install
- run: npm run lint