From 21426195d88c6c04566f3b5f4753a34a9d02cb2d Mon Sep 17 00:00:00 2001 From: Zubin Pratap Date: Mon, 19 Aug 2024 15:22:03 +1000 Subject: [PATCH] add gihub action to run tests on PR --- .github/workflows/pr-tests.yml | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 .github/workflows/pr-tests.yml diff --git a/.github/workflows/pr-tests.yml b/.github/workflows/pr-tests.yml new file mode 100644 index 0000000..e172d0b --- /dev/null +++ b/.github/workflows/pr-tests.yml @@ -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