Skip to content

Renamed toml in contracts package #147

Renamed toml in contracts package

Renamed toml in contracts package #147

name: ci-dev-contracts
defaults:
run:
working-directory: packages/contracts
on:
workflow_dispatch:
push:
branches:
- "main*"
- "development*"
paths:
- "packages/contracts/**"
jobs:
test:
runs-on: ubuntu-latest
environment: local
steps:
- uses: actions/checkout@v3
with:
submodules: recursive
- name: Install Foundry
uses: foundry-rs/foundry-toolchain@v1
with:
version: nightly
- name: Run tests
run: forge test -vvv
env:
ENVIRONMENT: local
- name: Run coverage report
run: forge coverage
env:
ENVIRONMENT: local
deploy-testnet:
runs-on: ubuntu-latest
needs: test
environment: testnet
steps:
- uses: actions/checkout@v3
with:
submodules: recursive
- name: Install Foundry
uses: foundry-rs/foundry-toolchain@v1
with:
version: nightly
- uses: actions/setup-node@v4
with:
node-version: 20
cache: "yarn"
- name: Install dependencies
run: yarn install
- name: Deploy contracts
run: yarn deploy:ci
env:
ENVIRONMENT: ${{ vars.ENVIRONMENT }}
DEPLOYER_PRIVATE_KEY: ${{ secrets.BASE_SEPOLIA_DEPLOYER_PRIVATE_KEY }}
BASE_SEPOLIA_ETHERSCAN_API_KEY: ${{ secrets.BASE_SEPOLIA_ETHERSCAN_API_KEY }}
SUPABASE_SERVICE_ROLE_KEY: ${{ secrets.TEST_SUPABASE_SERVICE_ROLE_KEY }}