Skip to content

Commit

Permalink
Testing (#4)
Browse files Browse the repository at this point in the history
* tests: Setup

* chore(docs): Contributing

* refactor: test suite

* refactor: Improving start server output and tests

* feat(ci): Adding CI manifest

* refactor: Tests
  • Loading branch information
leocavalcante authored Oct 24, 2023
1 parent cd11ebd commit 67c3ef8
Show file tree
Hide file tree
Showing 6 changed files with 1,596 additions and 30 deletions.
10 changes: 10 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
on:
- pull_request

jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Run tests
run: ./hfctl_test
10 changes: 10 additions & 0 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# Contributing

Hi, feel free to send any issues or pull requests.

## Testing

This project uses [bashunit](https://bashunit.typeddevs.com/) for testing. Tests are located at `./hfctl_test` and you can run them with:
```shell
./hfctl_test
```
5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ git pull

| Command | Description |
| --- | --- |

| `hfctl help` | Shows this help message |
| `hfctl version` | Displays hfctl and image version |
| `hfctl self-update` | Updates hfctl to the latest version |
Expand All @@ -31,3 +32,7 @@ git pull
| `hfctl watch` | Starts the Hyperf server with hyperf/watcher |
| `hfctl bin` (`cmd` or `command`) | Runs Hyperf commands (i.e.: `php bin/hyperf.php`) |
| `hfctl logs` | Shows the Hyperf container logs |

## Contributing

Please visit [CONTRIBUTING.md](CONTRIBUTING.md).
Loading

0 comments on commit 67c3ef8

Please sign in to comment.