feat: run go tests in CI
Some checks failed
ci/woodpecker/push/woodpecker Pipeline failed

This commit is contained in:
Aravinth Manivannan 2024-01-08 04:41:18 +05:30
parent 8257f9304b
commit 8b202e5363
Signed by: realaravinth
GPG key ID: F8F50389936984FF
2 changed files with 10 additions and 4 deletions

View file

@ -1,6 +1,12 @@
steps:
build:
deps:
image: rust
commands:
- make rust.test
- make rust.build
build:
image: go
commands:
- make test
- make build-rust
- make example

View file

@ -1,11 +1,11 @@
build-rust:
rust.build:
@-rm -rf lib
mkdir lib/
cd ./mcaptcha-pow-ffi/ && cargo build --release \
&& cp ./target/release/libmcaptcha_pow_ffi.a ../lib/ \
&& cp ./target/release/libmcaptcha_pow_ffi.so ../lib/
test:
rust.test:
cd ./mcaptcha-pow-ffi/ && cargo test
example: