Skip to content

seonghun-dev/flyway-naming-checker

Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Flyway Naming Convention Checker

GitHub Actions License

GitHub Actions CI workflow for validating Flyway migration script names to ensure they follow the naming convention.

This Github action generated from dbanty/rust-github-action-template.

Description

Flyway's file convention is clearly specified. This action checks that all files conform to the flyway file convention.

Flyway: Naming Patterns Matter | Redgate

Make sure to write path. path means the migration file path.

Do not start with /. It should be in the form of 'db/migration' instead of '/db/migration'.

flyway_naming

Example

To use this GitHub Actions workflow in your repository.

Create a YAML file (e.g., .github/workflows/flyway-naming-check.yml) with the following content:

name: Flyway Naming Check

on:
  push:
    branches: [ "main" ]
  pull_request:
    branches: [ "main" ]


jobs:
  build:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v3
      - name: flyway-naming-checker
        uses: seonghun-dev/flyway-naming-checker@v0.1.0
        with:
          path: 'db/migartion' # Adjust the path to match your migration script location

Preview

This script verifies that all files in the current folder match flyway naming convention.

screenshot 2024-04-08 오후 6 03 09

About

Flyway Naming Checker

Resources

License

Stars

Watchers

Forks

Languages