Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Run tests for PHP 7.4, 8.0, and 8.1.1 via GitHub Actions #13518

Merged
merged 1 commit into from
Aug 28, 2023

Conversation

marcusmoore
Copy link
Collaborator

Description

This PR introduces a workflow to run our phpunit test suite via GitHub Actions for our supported PHP versions: 7.4, 8.0, and 8.1.1.

@what-the-diff
Copy link

what-the-diff bot commented Aug 23, 2023

PR Summary

  • Implementation of Automated Testing Workflow
    This update introduces a new file (.github/workflows/tests.yml) which serves as the backbone for our automated testing procedure on GitHub. A significant improvement towards maintaining code quality on a regular basis.

  • Triggering of Workflow
    Any changes or additions to the 'master' and 'develop' branches will now kick off this automated process.

  • Inclusion of Job Named 'Tests'
    We've included a job called 'tests', operating on the latest Ubuntu version. This job ensures all new changes live up to our testing standards.

  • Integration with MySQL Database
    The job includes making use of a MySQL database to handle the testing data management.

  • Testing Multiple PHP Versions
    The workflow can handle testing with various PHP versions. It makes our testing protocol more adaptable and covers wider PHP environments.

  • Enhanced Testing Steps
    The testing procedure involves several steps, from setting up the PHP version and repository checkout, to getting the Composer cache directory and caching it. This update also implements copying of .env.testing.example to .env and .env.testing, installing dependencies, generating a key, setting directory permissions, and running tests using PHPUnit.

  • Utilizing Specific Environment Variables
    The procedure utilizes specific environment variables – ensuring our tests work in a controlled and stable environment.

@snipe snipe merged commit 81365ef into snipe:develop Aug 28, 2023
@marcusmoore marcusmoore deleted the chore/tests-via-github-actions branch June 24, 2024 20:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants