Skip to content

Install OpenZeppelin contracts on build #16

Install OpenZeppelin contracts on build

Install OpenZeppelin contracts on build #16

on:
pull_request:
workflow_dispatch:
name: Validate Pull Request
jobs:
validate_smart_contracts:
name: Validate Smart Contracts
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
submodules: recursive
- name: Install Foundry
# https://github.com/marketplace/actions/foundry-toolchain
uses: foundry-rs/foundry-toolchain@v1
- name: Set GitHub author identity
env:
GH_USER_EMAIL: ${{ secrets.GH_USER_EMAIL }}
GH_USER_NAME: ${{ secrets.GH_USER_NAME }}
run: git config --global user.email $GITHUB_USER_EMAIL; git config --global user.name $GITHUB_USER_NAME
- name: Install libraries
run: forge install OpenZeppelin/openzeppelin-contracts
- name: Run tests
run: forge test -vvv
- name: Run snapshot
run: forge snapshot