Merge pull request #402 from SocketDotTech/deployments #1082
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: Tests | |
on: [push, pull_request] | |
env: | |
FOUNDRY_PROFILE: prod | |
OPTIMISM_SEPOLIA_RPC: ${{ secrets.OPTIMISM_SEPOLIA_RPC }} | |
SEPOLIA_RPC: ${{ secrets.SEPOLIA_RPC }} | |
MAINNET_RPC: ${{ secrets.MAINNET_RPC }} | |
jobs: | |
tests: | |
name: Build and Tests | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Install Foundry | |
uses: foundry-rs/foundry-toolchain@v1 | |
with: | |
version: nightly | |
- name: Install forge dependencies | |
run: forge install | |
- name: Set Node.js 16.x | |
uses: actions/setup-node@v3 | |
with: | |
node-version: 16.x | |
- name: Run yarn install | |
uses: borales/actions-yarn@v4 | |
with: | |
cmd: install | |
- name: Build bundle | |
uses: borales/actions-yarn@v4 | |
with: | |
cmd: build | |
env: | |
SOCKET_SIGNER_KEY: "562ed26cb2e52dbdf8cfbec91cd5370f236a997e54ebc1c1fb34d3237d4795f8" | |
- name: Check contract sizes | |
run: forge build --sizes | |
- name: Run tests | |
run: forge test |