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

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: steps:
build: deps:
image: rust image: rust
commands:
- make rust.test
- make rust.build
build:
image: go
commands: commands:
- make test - make test
- make build-rust - make example

View File

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