From 6c31222d0dbe162255ddd330694271b64c2504ad Mon Sep 17 00:00:00 2001 From: Franco Barpp Gomes Date: Wed, 31 Jan 2024 14:59:32 -0300 Subject: [PATCH] test: Add unit and integration test workflows --- .github/workflows/integration-tests.yml | 29 +++++++++++++++++++++++++ .github/workflows/unit-tests.yml | 19 ++++++++++++++++ 2 files changed, 48 insertions(+) create mode 100644 .github/workflows/integration-tests.yml create mode 100644 .github/workflows/unit-tests.yml diff --git a/.github/workflows/integration-tests.yml b/.github/workflows/integration-tests.yml new file mode 100644 index 00000000..b8a37922 --- /dev/null +++ b/.github/workflows/integration-tests.yml @@ -0,0 +1,29 @@ + +name: integration-tests + +on: + push: + branches: + - master + pull_request: + +jobs: + Test: + name: Integration Test + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - uses: actions/setup-go@v4 + with: + go-version: '1.21' + + - name: Install Foundry + uses: foundry-rs/foundry-toolchain@v1 + with: + version: nightly + - name: Install forge dependencies + run: forge install + working-directory: ./contracts/evm + + - name: Test + run: make tests-integration \ No newline at end of file diff --git a/.github/workflows/unit-tests.yml b/.github/workflows/unit-tests.yml new file mode 100644 index 00000000..e3ff4e0b --- /dev/null +++ b/.github/workflows/unit-tests.yml @@ -0,0 +1,19 @@ +name: unit-tests + +on: + push: + branches: + - main + pull_request: + +jobs: + Test: + name: Unit Test + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - uses: actions/setup-go@v4 + with: + go-version: '1.21' + - name: Test + run: make tests-unit