⚡️ contracts: cache asset #1393
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: test | |
on: | |
push: | |
pull_request: | |
workflow_dispatch: | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
env: | |
OPTIMISM_RPC_URL: ${{ secrets.OPTIMISM_RPC_URL }} | |
EXPO_PUBLIC_ALCHEMY_API_KEY: test | |
EXPO_PUBLIC_ALCHEMY_GAS_POLICY_ID: test | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- uses: pnpm/action-setup@v4 | |
with: | |
version: ">=9.12.3" | |
run_install: false | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: ">=22.10.0" | |
cache: pnpm | |
- uses: foundry-rs/foundry-toolchain@v1 | |
with: | |
version: nightly-25f24e677a6a32a62512ad4f561995589ac2c7dc | |
- uses: actions/setup-python@v5 | |
with: | |
python-version: "3.12" | |
cache: pip | |
cache-dependency-path: contracts/requirements.txt | |
- run: pip install -r contracts/requirements.txt | |
- run: pnpm install --frozen-lockfile | |
- run: pnpm run --recursive --aggregate-output --no-bail build | |
- run: pnpm test --recursive --aggregate-output --no-bail | |
- uses: codecov/codecov-action@v4 | |
if: always() | |
with: | |
token: ${{ secrets.CODECOV_TOKEN }} |