Skip to content

Commit

Permalink
Merge pull request #40 from smartcontractkit/zp-gh-action
Browse files Browse the repository at this point in the history
add gihub action to run tests on PR
  • Loading branch information
zeuslawyer authored Aug 20, 2024
2 parents 00cb5e5 + 2142619 commit 1deb4fb
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 1deb4fb

Please sign in to comment.