Skip to content

Commit

Permalink
Enable CI (#8)
Browse files Browse the repository at this point in the history
* Enable cli

* Small fix

* Add foundry

* Finish integration
  • Loading branch information
ferranbt authored Nov 17, 2023
1 parent ade5303 commit 12ae0e3
Show file tree
Hide file tree
Showing 2 changed files with 40 additions and 0 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,3 +40,36 @@ jobs:
go mod tidy
git update-index -q --really-refresh
git diff-index HEAD
integration-tests:
name: Integration tests
runs-on: ubuntu-latest
steps:
- name: Set up Go
uses: actions/setup-go@v3
with:
go-version: ^1.21
id: go

- name: Check out code into the Go module directory and submodules
uses: actions/checkout@v2
with:
submodules: 'true'

- name: Build suave
run: |
cd suave-geth
make geth
- name: Run suave
run: |
./suave-geth/build/bin/geth --suave.dev &
- name: Install Foundry
uses: foundry-rs/foundry-toolchain@v1

- name: Build the contracts
run: forge build

- name: Run tests
run: |
make run-integration
7 changes: 7 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -25,3 +25,10 @@ fmt:

.PHONY: lt
lt: lint test

.PHONY: run-integration
run-integration:
go run examples/app-ofa-private/main.go
go run examples/mevm-confidential-store/main.go
go run examples/mevm-is-confidential/main.go
go run examples/onchain-callback/main.go

0 comments on commit 12ae0e3

Please sign in to comment.