Skip to content
You're viewing an older version of this GitHub Action. Do you want to see the latest version instead?
play-circle

GitHub Action

foundry-toolchain

v1.0.4

foundry-toolchain

play-circle

foundry-toolchain

Install Foundry

Installation

Copy and paste the following snippet into your .yml file.

              

- name: foundry-toolchain

uses: foundry-rs/[email protected]

Learn more about this action in foundry-rs/foundry-toolchain

Choose a version

foundry-toolchain Action

This GitHub action installs Foundry.

Example workflow

on: [push]

name: test

jobs:
  check:
    name: Foundry project
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v2
        with:
          submodules: recursive

      - name: Install Foundry
        uses: onbjerg/foundry-toolchain@v1
        with:
          version: nightly

      - name: Run tests
        run: forge test -vvv

Inputs

Name Required Description Type
version Yes Version to install, e.g. nightly or 1.0.0. Note: Foundry only has nightly builds for the time being. string
token No Authorized GitHub token. Defaults to ${{ github.token }} string