Skip to content

Create default setup GitHub workflow #1

Create default setup GitHub workflow

Create default setup GitHub workflow #1

Workflow file for this run

name: default-setup
on:
workflow_call:
secrets:
INFURA_API_KEY:
required: true
outputs:
cache-key:
description: "Cache key"
value: ${{ runner.os }}-cargo-registry-${{ hashFiles('**/Cargo.toml') }}
jobs:
setup:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
submodules: recursive
- name: Use Node.js 20.x
uses: actions/setup-node@v4
with:
node-version: 20.x
cache: "yarn"
cache-dependency-path: "yarn.lock"
- name: Install dependencies 📦
run: yarn install --frozen-lockfile
- name: Install Foundry
uses: foundry-rs/foundry-toolchain@v1
with:
version: nightly
- name: Generate contract Rust bindings
run: yarn bind
- name: Cache Cargo registry
uses: actions/cache@v4
with:
path: |
~/.cargo/registry
~/.cargo/git
target
key: ${{ runner.os }}-cargo-registry-${{ hashFiles('**/Cargo.toml') }}
restore-keys: |
${{ runner.os }}-cargo-registry-