Skip to content

BISON-5 Add GitHub Actions workflows for linting and testing#32

Open
thinkstylestudio wants to merge 3 commits into
developfrom
feature/github-actions-workflows-64c7
Open

BISON-5 Add GitHub Actions workflows for linting and testing#32
thinkstylestudio wants to merge 3 commits into
developfrom
feature/github-actions-workflows-64c7

Conversation

@thinkstylestudio
Copy link
Copy Markdown

Closes #6

Summary

Adds two GitHub Actions workflows to automate quality checks on every push and pull request to main and develop.

Workflows

Lint (.github/workflows/lint.yml)

  • Installs Composer dependencies on PHP 8.3
  • Runs ./vendor/bin/duster lint (TLint, PHP_CodeSniffer, PHP CS Fixer, and Pint), matching the existing lando dust tooling

Tests (.github/workflows/tests.yml)

  • Installs Composer dependencies on PHP 8.3 with SQLite extensions
  • Prepares a testing environment (.env, app key, SQLite database file)
  • Runs php artisan migrate --env=testing before php artisan test, matching the existing lando test tooling

Both workflows cache Composer dependencies to keep CI runs fast.

Open in Web Open in Cursor 

Justin Rhodes and others added 3 commits August 11, 2025 21:01
Introduce separate CI workflows that mirror local Lando tooling:
- Lint runs Duster (TLint, PHPCS, PHP CS Fixer, Pint)
- Tests install dependencies, migrate the SQLite testing database, and run Pest via artisan test

Both workflows run on pushes and pull requests targeting main and develop.

Co-authored-by: Theron Smith <theron+github@thinkstylestudio.com>
@thinkstylestudio thinkstylestudio marked this pull request as ready for review May 20, 2026 07:06
@thinkstylestudio thinkstylestudio self-assigned this May 20, 2026
@thinkstylestudio thinkstylestudio changed the title Add GitHub Actions workflows for linting and testing BISON-5 Add GitHub Actions workflows for linting and testing May 20, 2026
@thinkstylestudio thinkstylestudio changed the base branch from main to develop May 20, 2026 07:14
@dpellenwood dpellenwood requested a review from travisred May 22, 2026 15:22
Copy link
Copy Markdown

@dpellenwood dpellenwood left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🍏 just one suggestion.

- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: '8.3'
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'd suggest we create a var for the PHP version so when changing it doesn't need to be updated across a bunch of files.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

GitHub Actions Workflows

3 participants