https://github.com/jellydn/stepci-demo
A slow guide to set up continuous integration for a Fastify using StepCI.
https://github.com/jellydn/stepci-demo
bunjs e2e-testing fastifyjs stepci
Last synced: 4 months ago
JSON representation
A slow guide to set up continuous integration for a Fastify using StepCI.
- Host: GitHub
- URL: https://github.com/jellydn/stepci-demo
- Owner: jellydn
- License: mit
- Created: 2023-09-23T02:09:58.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2025-06-17T21:41:42.000Z (4 months ago)
- Last Synced: 2025-06-17T22:35:23.285Z (4 months ago)
- Topics: bunjs, e2e-testing, fastifyjs, stepci
- Language: TypeScript
- Homepage: https://stepci.productsway.com/documentation
- Size: 1.43 MB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 13
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
A Comprehensive Guide to Fastify, Docker, and CI with StepCI 👋

## Overview
Get up and running with a [Fastify](https://fastify.dev/docs/latest/Reference/TypeScript/) application, integrated with continuous testing via [Step CI](https://stepci.com/#get-started).
[![IT Man - A Comprehensive Guide to Fastify, Bun, and CI with StepCI [Vietnamese]](https://i.ytimg.com/vi/pgofbfmxMto/hqdefault.jpg)](https://www.youtube.com/watch?v=pgofbfmxMto)
## Prerequisites
- [Bun](https://bun.sh/) installed on your system.
- [antfu/ni](https://github.com/antfu/ni) 💡 Use the right package manager.## Getting Started
1. **Clone the Repository**
```bash
git clone https://github.com/jellydn/stepci-demo.git
```2. **Install Dependencies**
```bash
bun install
```3. **Run Tests Locally**
```bash
bun run start
bun run test:e2e
```
## Testing with Step CI
Choose from various methods to run your tests: Node, Docker, or GitHub Actions.
### Node
```bash
npx stepci run workflow.yml
```### Docker
```bash
docker run \
-v "$(pwd)"/tests:/tests \
ghcr.io/stepci/stepci \
tests/workflow.yml
```### GitHub Actions
```yaml
on: [push]
jobs:
api_test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Step CI Action
uses: stepci/stepci@main
with:
workflow: "workflow.yml"
```## Deployment with Koyeb
Easily deploy your Fastify application on the serverless platform [Koyeb](https://www.koyeb.com/docs/deploy/fastify).
## Additional Resources
- [Step CI Documentation](https://docs.stepci.com/guides/concepts.html)
- [Fastify TypeScript Documentation](https://fastify.dev/docs/latest/Reference/TypeScript/)
- [Bun 1.0 Release Blog](https://bun.sh/blog/bun-v1.0)
- [How to run GitHub Action locally with act.](https://github.com/jellydn/github-action-locally)
- [![IT Man - Running GitHub Actions Locally: A Complete Guide with act [Vietnamese]](https://i.ytimg.com/vi/nklNK13G7u4/hqdefault.jpg)](https://www.youtube.com/watch?v=nklNK13G7u4)
- [![IT Man - Understanding and Preventing Floating Promises in JavaScript | Tutorial [Vietnamese]](https://i.ytimg.com/vi/hF3yl4iOlwA/hqdefault.jpg)](https://www.youtube.com/watch?v=hF3yl4iOlwA)## Author
👤 **Huynh Duc Dung**
- Website: https://productsway.com/
- Twitter: [@jellydn](https://twitter.com/jellydn)
- Github: [@jellydn](https://github.com/jellydn)## Show your support
If this guide has been helpful, please give it a ⭐️.
[](https://ko-fi.com/dunghd)
[](https://paypal.me/dunghd)
[](https://www.buymeacoffee.com/dunghd)