mirror of
https://github.com/TECHNOFAB11/pay-respects.git
synced 2025-12-12 06:20:09 +01:00
chore: makefile and CI test
This commit is contained in:
parent
5a4ef05828
commit
4f637c1e1b
2 changed files with 27 additions and 4 deletions
|
|
@ -1,4 +1,4 @@
|
||||||
name: Rust
|
name: Test
|
||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
|
|
@ -11,7 +11,7 @@ env:
|
||||||
CARGO_INCREMENTAL: 0
|
CARGO_INCREMENTAL: 0
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build-and-test:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
|
|
@ -24,6 +24,6 @@ jobs:
|
||||||
- name: Build
|
- name: Build
|
||||||
run: cargo build --verbose
|
run: cargo build --verbose
|
||||||
|
|
||||||
- name: Run tests
|
- name: Tests
|
||||||
run: cargo test --verbose
|
run: make test
|
||||||
|
|
||||||
23
Makefile
Normal file
23
Makefile
Normal file
|
|
@ -0,0 +1,23 @@
|
||||||
|
build:
|
||||||
|
cargo build
|
||||||
|
|
||||||
|
release:
|
||||||
|
cargo build --release
|
||||||
|
|
||||||
|
test-rust: build
|
||||||
|
cargo test --verbose
|
||||||
|
|
||||||
|
install:
|
||||||
|
echo "Installing pay-respects core. Use `install-all` to install all modules."
|
||||||
|
cargo install --path core
|
||||||
|
|
||||||
|
install-all:
|
||||||
|
echo "Installing pay-respects core and all modules."
|
||||||
|
cargo install --path core
|
||||||
|
cargo install --path module-runtime-rules
|
||||||
|
cargo install --path module-request-ai
|
||||||
|
|
||||||
|
test-suggestions: build
|
||||||
|
cd tests && bash main.sh
|
||||||
|
|
||||||
|
test: test-rust test-suggestions
|
||||||
Loading…
Add table
Add a link
Reference in a new issue