Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion crates/cli/src/subcommands/project/lib._rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
use spacetimedb::{spacetimedb, ReducerContext};
use log;

#[spacetimedb(table)]
pub struct Person {
Expand Down
5 changes: 4 additions & 1 deletion test/run-smoke-tests.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/bin/bash

set -euo pipefail
set -x

cd "$(dirname "$0")"

CRST='\033[0m' # Text Reset
Expand All @@ -20,6 +20,9 @@ export SPACETIME_SKIP_CLIPPY=1
CONTAINER_NAME=$(docker ps | grep node | awk '{print $NF}')
docker logs "$CONTAINER_NAME"

rustup update
rustup component add clippy

source "lib.include"
mkdir -p ~/.spacetime
if [ -f ~/.spacetime/config.toml ] ; then
Expand Down
15 changes: 15 additions & 0 deletions test/tests/default-module-clippy.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
#!/bin/bash

if [ "$DESCRIBE_TEST" = 1 ] ; then
echo "This tests to make sure that the default rust module has no clippy errors or warnings"
exit
fi

set -euox pipefail

source "./test/lib.include"

create_project

cd "$PROJECT_PATH"
run_test cargo clippy -- -D warnings