Skip to content

Commit

Permalink
add gihub action to run tests on PR
Browse files Browse the repository at this point in the history
  • Loading branch information
zeuslawyer committed Aug 19, 2024
1 parent 00cb5e5 commit 2142619
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/pr-tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: Run Tests On PR

on:
# Run tests for pull requests to the main or develop branch
pull_request:
branches: [main, develop]
# Run tests on pushes to all branches
push:
branches: ["**"]
workflow_dispatch:


jobs:
test:
name: run forge test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
submodules: recursive

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

- name: Run tests
run: forge test -vvv

0 comments on commit 2142619

Please sign in to comment.