chore: Re-introduce CLI test (#7268)

This commit is contained in:
Oli Juhl
2024-05-08 11:11:06 +02:00
committed by GitHub
parent 0f60d1fe96
commit 948458a43d
3 changed files with 92 additions and 99 deletions

View File

@@ -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"