-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Implement tests as GitHub workflow #23
Merged
Merged
Changes from all commits
Commits
Show all changes
28 commits
Select commit
Hold shift + click to select a range
8aab3bd
Install fauna-shell.
f4807db
Fix indentation.
376c76c
Setup Fauna project in GitHub Actions.
90ab868
Setup script fixes.
12caf47
Call correct script.
498619e
Make test/setup.sh executable.
cde3f15
Use full path to fauna.
70ce2b8
Add -g flag to npm install.
39d780a
Remove default local env.
4f45e5f
Disable interactivity for fauna command.
4026008
Use new fauna-shell syntax.
8634c04
Add localClient bean.
8229e82
Run validate script!
72a8252
Add executable bit to validate.sh, and update .gitignore.
6c29a6e
Add retries to furst curl command, to allow for bootRun to finish.
4ff7a14
Create server key for ECommerceJava.
c7f3771
Use eval to create key.
0aaecd4
Silly typo!
47d1805
Add back fauna-project.
ede9cda
Add logs for bootRun.
ec24db9
Increase retry delay.
2087bf5
Use import and eval to hydrate collections.
7321529
Let fauna set Category IDs.
8e79c9d
Add some more requests to validate script.
21a2623
Update .gitignore to ignore.idea folder.
findgriffin 107c06c
Simplify script by using --active flag.
ace1919
Remove setup.sh.
aa09dee
Replace directory in fauna-project file with --dir flag.
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
[ | ||
{ | ||
"name": "electronics", | ||
"description": "bargain electronics" | ||
}, | ||
{ | ||
"name": "books", | ||
"description": "bargain books" | ||
}, | ||
{ | ||
"name": "movies", | ||
"description": "bargain movies" | ||
} | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
[ | ||
{ | ||
"name": "Valued Customer", | ||
"email": "fake@fauna.com", | ||
"address": { | ||
"street": "Herengracht", | ||
"city": "Amsterdam", | ||
"state": "North Holland", | ||
"postalCode": "1015BT", | ||
"country": "Netherlands" | ||
} | ||
} | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,16 @@ | ||
{ | ||
"query": " | ||
let customer = Customer.byEmail('fake@fauna.com').first()!\n | ||
let orders = ['cart', 'processing', 'shipped', 'delivered'].map(status => {\n | ||
let order: Any = Order.byCustomer(customer).firstWhere(o => o.status == status)\n | ||
if (order == null) {\n | ||
let newOrder: Any = Order.create({\n | ||
customer: customer,\n | ||
status: status,\n | ||
createdAt: Time.now(),\n | ||
payment: {}\n | ||
})\n | ||
let product: Any = Product.byName('Drone').first()!\n | ||
let orderItem: Any = OrderItem.create({ order: newOrder, product: product, quantity: 1 })\n | ||
orderItem\n | ||
newOrder\n | ||
} else {\n | ||
order\n | ||
}\n | ||
})\n | ||
orders | ||
" | ||
} | ||
let customer = Customer.byEmail('fake@fauna.com').first()! | ||
['cart', 'processing', 'shipped', 'delivered'].map(status => { | ||
let order: Any = Order.byCustomer(customer).firstWhere(o => o.status == status) | ||
if (order == null) { | ||
let newOrder: Any = Order.create({ | ||
customer: customer, | ||
status: status, | ||
createdAt: Time.now(), payment: {} | ||
}) | ||
|
||
let product: Any = Product.byName('Drone').first()! | ||
let orderItem: Any = OrderItem.create( {order: newOrder, product: product, quantity: 1 }) | ||
orderItem | ||
newOrder | ||
} else { order } | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
{ | ||
"dev": { | ||
"host": "http://localhost:8080" | ||
} | ||
} |
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We should check with the Fauna shell team to be sure no files are intended to be checked in when working on a team.