Skip to content

Commit

Permalink
fix: pass vars, enable tests
Browse files Browse the repository at this point in the history
  • Loading branch information
dbcfd committed Feb 27, 2024
1 parent 3ad24a3 commit 402c9b8
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build-and-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ jobs:
- uses: mozilla-actions/[email protected]
- name: Run tests
run: |
echo "Skipping tests"
make test
env:
DID_DOCUMENT: ${{ vars.DID_DOCUMENT }}
DID_PRIVATE_KEY: ${{ secrets.DID_PRIVATE_KEY }}
Expand Down
9 changes: 6 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,10 @@ DEPLOY_TAG ?= latest
# Whether or not this is a manual deployment
MANUAL_DEPLOY ?= false

DATABASE_URL ?= sqlite://checkpointer.db
DID_DOCUMENT ?= ${DID_DOCUMENT}
DID_PRIVATE_KEY ?= ${DID_PRIVATE_KEY}
DATABASE_URL ?= ${DATABASE_URL}
RUST_LOG ?= ${RUST_LOG}

.PHONY: all
all: build check-fmt check-clippy test
Expand Down Expand Up @@ -57,9 +60,9 @@ test:
# Setup scaffolding
./ci-scripts/setup_test_env.sh
# Test with default features
DATABASE_URL=$(DATABASE_URL) $(CARGO) test -p checkpointer --locked --release
$(CARGO) test -p checkpointer --locked --release
# Test with all features
DATABASE_URL=$(DATABASE_URL) $(CARGO) test -p checkpointer --locked --release --all-features
$(CARGO) test -p checkpointer --locked --release --all-features
./ci-scripts/teardown_test_env.sh

.PHONY: test-event-joiner
Expand Down

0 comments on commit 402c9b8

Please sign in to comment.