Skip to content

Instantly share code, notes, and snippets.

@tarrencev
Created January 3, 2022 23:23
Show Gist options
  • Save tarrencev/26e966d8e59f5c9d3f0bb0e906d97771 to your computer and use it in GitHub Desktop.
Save tarrencev/26e966d8e59f5c9d3f0bb0e906d97771 to your computer and use it in GitHub Desktop.
foundry test runner github action
name: tests
on:
push:
branches:
- "main"
pull_request:
branches:
- "main"
jobs:
tests:
runs-on: ubuntu-latest
env:
FOUNDRY_VERSION: c8d31edd9fbb9902aaac4dcaa2278808d2879b72
steps:
- uses: actions/checkout@v2
- uses: actions/cache@v2
with:
path: ~/.cargo
key: ${{ runner.os }}-${{ env.FOUNDRY_VERSION }}
- uses: actions-rs/toolchain@v1
with:
toolchain: stable
- uses: actions-rs/cargo@v1
with:
command: install
args: --git https://github.com/gakonst/foundry --bin forge --rev ${{env.FOUNDRY_VERSION}} --locked
- run: forge update
- run: forge test --force --verbosity 5
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment