Skip to content

A GitHub workflow to check the compatibility of the newly added composer and npm packages. If enabled it will also run a linter and php test.

Notifications You must be signed in to change notification settings

keygun-development/FlowCheck

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

Repository files navigation

FlowCheck GitHub Action

FlowCheck Icon

This GitHub Action checks and verifies your project by installing dependencies, running tests, and executing a linter. It is designed to be used in your Continuous Integration (CI) workflow, particularly for PHP and Node.js projects.

Inputs

  • enableTests (optional): Enable or disable running tests. Default is true.
  • enableLinter (optional): Enable or disable running the linter. Default is true.
  • testCommand (optional): Command to run tests. Default is composer run test.
  • lintCommand (optional): Command to run the linter. Default is npm run lint.

Example Usage

Create a workflow file (e.g., .github/workflows/ci.yml) in your project repository:

name: Run Tests and Linter

on:
  pull_request:
    types:
      - opened
      - synchronize

jobs:
  build:
    runs-on: ubuntu-latest

    steps:
      - name: Flowcheck
        uses: keygun-development/FlowCheck@v3.0.1
        with:
          enableTests: true
          enableLinter: true
          testCommand: 'composer run custom-test-command'
          lintCommand: 'npm run custom-lint-command'

About

A GitHub workflow to check the compatibility of the newly added composer and npm packages. If enabled it will also run a linter and php test.

Resources

Stars

Watchers

Forks

Packages

No packages published