Skip to content
This repository has been archived by the owner on Dec 23, 2024. It is now read-only.

Commit

Permalink
ci(tests): run tests on PR/Push events
Browse files Browse the repository at this point in the history
  • Loading branch information
youben11 committed Oct 11, 2023
1 parent 0274a82 commit c038c4b
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 1 deletion.
34 changes: 34 additions & 0 deletions .github/workflows/tests.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: Run Tests

on:
push:
branches:
- 'main'
tags:
- '*'
pull_request:

jobs:
build_and_test:
name: Build and test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
submodules: recursive

- name: Checkout zbc-fhe-tool
uses: actions/checkout@v3
with:
repository: zama-ai/fhevm-tfhe-cli
ref: main
path: zbc-fhe-tool

- name: Generate TFHE-rs keys
working-directory: ./zbc-fhe-tool
run: |
mkdir -p $HOME/.evmosd/zama/keys/network-fhe-keys
cargo run --features tfhe/x86_64-unix --release -- generate-keys -d $HOME/.evmosd/zama/keys/network-fhe-keys
- name: Run tests
run: make test
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ build: build-tfhe-rs-capi
cd fhevm && CGO_CFLAGS=${CGO_CFLAGS} CGO_LDFLAGS=${CGO_LDFLAGS} go build .

.PHONY: test
test:
test: build-tfhe-rs-capi
cd fhevm && CGO_CFLAGS=${CGO_CFLAGS} CGO_LDFLAGS=${CGO_LDFLAGS} go test -v .

.PHONY: build-tfhe-rs-capi
Expand Down

0 comments on commit c038c4b

Please sign in to comment.