diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 64d1d25..5907451 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -22,13 +22,13 @@ jobs: distribution: corretto - name: Install fauna-shell run: - npm install -g fauna-shell + npm install -g fauna-shell@">=4.0.0-beta" - name: Setup Test Database - run: ./test/setup.sh + run: ./scripts/setup.sh - name: Test sample app run: | ./gradlew build FAUNA_ENDPOINT=http://localhost:8443 FAUNA_SECRET=`cat .fauna_key` ./gradlew bootRun > bootrun.log 2>&1 & - ./test/validate.sh - cat bootrun.log \ No newline at end of file + ./scripts/validate.sh + cat bootrun.log diff --git a/README.md b/README.md index b80aff5..6816ef6 100644 --- a/README.md +++ b/README.md @@ -143,12 +143,12 @@ To run the app, you'll need: ## Add sample data -The app includes a setup script that adds sample documents to the +The app includes a seed script that adds sample documents to the `ECommerceJava` database. From the root directory, run: ```sh -chmod +x setup.sh -FAUNA_SECRET= ./setup.sh +chmod +x ./scripts/seed.sh +FAUNA_SECRET= ./seed.sh ``` You can view documents created by the script in the [Fauna @@ -210,7 +210,7 @@ Customer documents and related API responses: 1. If you haven't already, add the sample data: ```sh - FAUNA_SECRET= ./setup.sh + FAUNA_SECRET= ./scripts/seed.sh ``` If the app server is running, stop the server by pressing Ctrl+C. diff --git a/test/http-client.env.json b/scripts/http-client.env.json similarity index 100% rename from test/http-client.env.json rename to scripts/http-client.env.json diff --git a/test/requests.http b/scripts/requests.http similarity index 100% rename from test/requests.http rename to scripts/requests.http diff --git a/setup.sh b/scripts/seed.sh similarity index 100% rename from setup.sh rename to scripts/seed.sh diff --git a/test/setup.sh b/scripts/setup.sh similarity index 100% rename from test/setup.sh rename to scripts/setup.sh diff --git a/test/validate.sh b/scripts/validate.sh similarity index 100% rename from test/validate.sh rename to scripts/validate.sh