Skip to content

A slow guide to set up continuous integration for a Fastify using StepCI.

License

Notifications You must be signed in to change notification settings

jellydn/stepci-demo

Repository files navigation

A Comprehensive Guide to Fastify, Docker, and CI with StepCI 👋

stepci-demo

Overview

Get up and running with a Fastify application, integrated with continuous testing via Step CI.

IT Man - A Comprehensive Guide to Fastify, Bun, and CI with StepCI [Vietnamese]

Prerequisites

  • Bun installed on your system.
  • antfu/ni 💡 Use the right package manager.

Getting Started

  1. Clone the Repository

    git clone https://github.com/jellydn/stepci-demo.git
  2. Install Dependencies

    bun install
  3. Run Tests Locally

    bun run start
    bun run test:e2e

    Demo

Testing with Step CI

Choose from various methods to run your tests: Node, Docker, or GitHub Actions.

Node

npx stepci run workflow.yml

Docker

docker run \
       -v "$(pwd)"/tests:/tests \
       ghcr.io/stepci/stepci \
       tests/workflow.yml

GitHub Actions

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.

Additional Resources

Author

👤 Huynh Duc Dung

Show your support

If this guide has been helpful, please give it a ⭐️.

kofi paypal buymeacoffee