Skip to content

Update workflows, test the Docker image#513

Merged
fityannugroho merged 9 commits intomainfrom
update-workflow
Aug 15, 2025
Merged

Update workflows, test the Docker image#513
fityannugroho merged 9 commits intomainfrom
update-workflow

Conversation

@fityannugroho
Copy link
Owner

@fityannugroho fityannugroho commented Aug 15, 2025

PR Checklist

Please check if your PR fulfills the following requirements:

  • The commit message follows our Contributing Guidelines
  • Tests for the changes have been added (optional, for bug fixes or features)
  • Docs have been added / updated (optional, for bug fixes or features)

PR Type

What kind of change does this PR introduce?

  • Bug fix
  • Feature
  • Code style update (formatting, local variables)
  • Refactoring (no functional changes, no api changes)
  • Build related changes
  • CI related changes

What is the current behavior?

Issue number: resolve #464

What is the new behavior?

This pull request refactors and modernizes the CI/CD pipeline and Docker setup for the project. The main changes include consolidating and improving GitHub Actions workflows for testing and building both the app and its container across multiple database backends, updating the Dockerfile for Node.js 20 and flexible database provider support, and enhancing Dependabot configuration for dependency management.

CI/CD Pipeline Modernization:

  • Added a new comprehensive workflow in .github/workflows/ci.yml that runs builds, tests, linting, Prisma generation, migrations, seeding, and E2E tests across Node.js 20/22 and all supported databases (PostgreSQL, MySQL, MongoDB, SQLite). Also includes container build and smoke tests for each database provider.
  • Removed legacy workflows: .github/workflows/pr-tests.yml and .github/workflows/tests.yml, which previously handled PR and push test jobs separately. [1] [2]
  • Updated the CodeQL workflow to use the latest version of the actions/checkout action for improved reliability and security.

Dockerfile Improvements:

  • Migrated the base image from Node.js 18 to Node.js 20 for both build and runtime stages, ensuring up-to-date Node support. [1] [2]
  • Added build-time and runtime support for the DB_PROVIDER argument and environment variable, enabling flexible Prisma Client generation and runtime configuration for different database providers. [1] [2]

Dependabot Configuration Enhancements:

  • Updated .github/dependabot.yml to refine update schedules, commit messaging, and dependency types, and added support for GitHub Actions updates.

@fityannugroho fityannugroho added the ci Changes or issues related to Continuous Integration (e.g., automated builds, linting, testing) label Aug 15, 2025
@fityannugroho fityannugroho changed the title Update workflow, test the Docker image on PR Update CI workflow, test the Docker image Aug 15, 2025
@fityannugroho fityannugroho changed the title Update CI workflow, test the Docker image Update workflows, test the Docker image Aug 15, 2025
@fityannugroho fityannugroho merged commit 086095b into main Aug 15, 2025
15 checks passed
@fityannugroho fityannugroho deleted the update-workflow branch August 15, 2025 14:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ci Changes or issues related to Continuous Integration (e.g., automated builds, linting, testing)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add testing for Docker image

1 participant