Skip to content

Commit

Permalink
Add workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
rya-sge committed Sep 3, 2024
1 parent eed6465 commit 592f9bd
Showing 1 changed file with 15 additions and 21 deletions.
36 changes: 15 additions & 21 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -1,34 +1,28 @@
name: test
name: Foundry CI

on: workflow_dispatch

env:
FOUNDRY_PROFILE: ci
on:
push:
branches: [dev, master, main]
pull_request:
branches: [dev, master, main]

jobs:
check:
strategy:
fail-fast: true

name: Foundry project
build:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
with:
submodules: recursive
- uses: actions/checkout@v3

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

- name: Run Forge install
run: forge install

- name: Run Forge build
run: |
forge --version
forge build --sizes
id: build
run: forge build --sizes

- name: Run Forge tests
run: |
forge test -vvv
id: test
- name: Run Forge tests
run: forge test -vvv --gas-report

0 comments on commit 592f9bd

Please sign in to comment.