Skip to content

Commit 425e27e

Browse files
committed
Add tests
1 parent e5591ec commit 425e27e

File tree

1 file changed

+62
-55
lines changed

1 file changed

+62
-55
lines changed

README.md

+62-55
Original file line numberDiff line numberDiff line change
@@ -1,55 +1,62 @@
1-
# Laravel Workflow Sample App
2-
3-
This is a sample Laravel 10 application with example workflows that you can run inside a GitHub codespace.
4-
5-
### Step 1
6-
Create a codespace from the main branch of this repo.
7-
8-
<img src="https://user-images.githubusercontent.com/1130888/233664377-f300ad50-5436-4bb8-b172-c52e12047264.png" alt="image" width="300">
9-
10-
### Step 2
11-
Wait for the codespace to build. This should take between 5 to 10 minutes.
12-
13-
<img src="https://user-images.githubusercontent.com/1130888/233664397-4ae156f3-f69b-406f-b6d4-4f9316684000.png" alt="image" width="500">
14-
15-
### Step 3
16-
Once the codespace has been created. You will see the editor and the terminal at the bottom.
17-
18-
<img src="https://user-images.githubusercontent.com/1130888/233665550-1a4f2098-2919-4108-ac9f-bef1a9f2f47c.png" alt="image" width="400">
19-
20-
### Step 4
21-
Run the migrations to create the necessary database tables.
22-
23-
```bash
24-
php artisan migrate
25-
```
26-
27-
### Step 5
28-
Start the queue worker. This will enable the processing of workflows and activities.
29-
30-
```bash
31-
php artisan queue:work
32-
```
33-
34-
### Step 6
35-
Create a new terminal window.
36-
37-
<img src="https://user-images.githubusercontent.com/1130888/233666917-029247c7-9e6c-46de-b304-27473fd34517.png" alt="image" width="200">
38-
39-
### Step 7
40-
Start the example workflow inside the new terminal window.
41-
42-
```bash
43-
php artisan workflow
44-
```
45-
46-
### Step 8
47-
You can view the waterline dashboard via the mapped port.
48-
49-
<img src="https://user-images.githubusercontent.com/1130888/233668485-b988e336-0462-4bbc-bb77-78c73df363b4.png" alt="image" width="500">
50-
51-
Add `/waterline/dashboard` to the URL e.g. `https://[your-codespace-name]-80.preview.app.github.dev/waterline/dashboard`
52-
53-
<img src="https://user-images.githubusercontent.com/1130888/233669600-3340ada6-5f73-4602-8d82-a81a9d43f883.png" alt="image" width="600">
54-
55-
That's it! You can now create and test workflows.
1+
# Laravel Workflow Sample App
2+
3+
This is a sample Laravel 10 application with example workflows that you can run inside a GitHub codespace.
4+
5+
### Step 1
6+
Create a codespace from the main branch of this repo.
7+
8+
<img src="https://user-images.githubusercontent.com/1130888/233664377-f300ad50-5436-4bb8-b172-c52e12047264.png" alt="image" width="300">
9+
10+
### Step 2
11+
Wait for the codespace to build. This should take between 5 to 10 minutes.
12+
13+
<img src="https://user-images.githubusercontent.com/1130888/233664397-4ae156f3-f69b-406f-b6d4-4f9316684000.png" alt="image" width="500">
14+
15+
### Step 3
16+
Once the codespace has been created. You will see the editor and the terminal at the bottom.
17+
18+
<img src="https://user-images.githubusercontent.com/1130888/233665550-1a4f2098-2919-4108-ac9f-bef1a9f2f47c.png" alt="image" width="400">
19+
20+
### Step 4
21+
Run the migrations to create the necessary database tables.
22+
23+
```bash
24+
php artisan migrate
25+
```
26+
27+
### Step 5
28+
Start the queue worker. This will enable the processing of workflows and activities.
29+
30+
```bash
31+
php artisan queue:work
32+
```
33+
34+
### Step 6
35+
Create a new terminal window.
36+
37+
<img src="https://user-images.githubusercontent.com/1130888/233666917-029247c7-9e6c-46de-b304-27473fd34517.png" alt="image" width="200">
38+
39+
### Step 7
40+
Start the example workflow inside the new terminal window.
41+
42+
```bash
43+
php artisan workflow
44+
```
45+
46+
### Step 8
47+
You can view the waterline dashboard via the mapped port.
48+
49+
<img src="https://user-images.githubusercontent.com/1130888/233668485-b988e336-0462-4bbc-bb77-78c73df363b4.png" alt="image" width="500">
50+
51+
Add `/waterline/dashboard` to the URL e.g. `https://[your-codespace-name]-80.preview.app.github.dev/waterline/dashboard`
52+
53+
<img src="https://user-images.githubusercontent.com/1130888/233669600-3340ada6-5f73-4602-8d82-a81a9d43f883.png" alt="image" width="600">
54+
55+
### Step 9
56+
Run the workflow and activity tests.
57+
58+
```bash
59+
php artisan test
60+
```
61+
62+
That's it! You can now create and test workflows.

0 commit comments

Comments
 (0)