From 182178f566054113adeedd71c365e09d5b4d4123 Mon Sep 17 00:00:00 2001 From: youben11 Date: Wed, 11 Oct 2023 11:41:02 +0100 Subject: [PATCH] ci(tests): run tests on PR/Push events --- .github/workflows/publish_geth_testing.yml | 17 +++++++++++++++++ Makefile | 2 +- 2 files changed, 18 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/publish_geth_testing.yml diff --git a/.github/workflows/publish_geth_testing.yml b/.github/workflows/publish_geth_testing.yml new file mode 100644 index 0000000..97782e4 --- /dev/null +++ b/.github/workflows/publish_geth_testing.yml @@ -0,0 +1,17 @@ +name: Run Tests + +on: + push: + pull_request: + +jobs: + build_and_test: + name: Build and test + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + with: + submodules: recursive + + - name: Run tests + run: make test diff --git a/Makefile b/Makefile index 2a47ff5..3a4e097 100644 --- a/Makefile +++ b/Makefile @@ -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