chore: Re-introduce CLI test (#7268)
This commit is contained in:
17
.github/actions/test-server/action.yml
vendored
17
.github/actions/test-server/action.yml
vendored
@@ -1,5 +1,5 @@
|
||||
name: "Test server"
|
||||
description: "Test the currently running medusa server to see if a user has been created and that the server is seeded"
|
||||
description: "Test the currently running medusa server to see if a user has been created"
|
||||
|
||||
inputs:
|
||||
email:
|
||||
@@ -10,10 +10,11 @@ inputs:
|
||||
description: "password of user to log in"
|
||||
required: false
|
||||
default: "password"
|
||||
pathToSeedData:
|
||||
description: "path to seed data"
|
||||
required: false
|
||||
default: "../cli-test/data/seed.json"
|
||||
# TODO: Add back seed test
|
||||
# pathToSeedData:
|
||||
# description: "path to seed data"
|
||||
# required: false
|
||||
# default: "../cli-test/data/seed.json"
|
||||
|
||||
runs:
|
||||
using: "composite"
|
||||
@@ -24,9 +25,9 @@ runs:
|
||||
- name: Log in with user
|
||||
shell: "bash"
|
||||
run: ./integration-tests/scripts/cli/login.sh ${{ inputs.email }} ${{ inputs.password }}
|
||||
- name: GetProducts
|
||||
shell: "bash"
|
||||
run: ./integration-tests/scripts/cli/get-products.sh ${{ inputs.pathToSeedData }}
|
||||
# - name: GetProducts
|
||||
# shell: "bash"
|
||||
# run: ./integration-tests/scripts/cli/get-products.sh ${{ inputs.pathToSeedData }}
|
||||
|
||||
- name: Kill server
|
||||
shell: "bash"
|
||||
|
||||
Reference in New Issue
Block a user