Skip to content

Commit

Permalink
test: Add unit and integration test workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
Hyodar committed Jan 31, 2024
1 parent c95f0d0 commit 6c31222
Show file tree
Hide file tree
Showing 2 changed files with 48 additions and 0 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/integration-tests.yml
Original file line number Diff line number Diff line change
@@ -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
19 changes: 19 additions & 0 deletions .github/workflows/unit-tests.yml
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 6c31222

Please sign in to comment.