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