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 sqlite tests in GitHub action #14090

Merged
merged 2 commits into from
Jan 4, 2024
Merged

Conversation

marcusmoore
Copy link
Collaborator

@marcusmoore marcusmoore commented Jan 3, 2024

Description

This PR runs our test suite against SQLite when pull requests are opened, updated, and merged. It's really just a smoke test to make sure we can run tests quickly when developing locally.

We were originally going to add maria db as well but decided against it.

Type of change

  • New feature(ish) (non-breaking change which adds functionality)

Copy link

This pull request has been linked to Shortcut Story #24386: Use GitHub Actions to run tests in sqlite and mariadb.

Copy link

what-the-diff bot commented Jan 3, 2024

PR Summary

  • Renaming and Adjusting of Existing Workflow File
    The existing workflow file for tests was renamed and slightly tweaked. It now specifically designates that these tests will be run on MySQL database. This renaming allows for clearer separation when running tests on different databases.

  • Addition of a New Workflow for SQLite Testing
    A totally new workflow file has been added to run tests on SQLite database. This workflow includes multiple steps:

    • The setup to use the latest version of Ubuntu as the base operating system.
    • The defined workflow runs on a specific version of PHP (8.1.1).
    • Installation of PHP and the setup steps for the repository and caching of Composer (a tool for managing PHP dependencies).
    • A sequence of operations on '.env' files and directory permissions, followed by execution of tests in an SQLite database environment.

This new addition enables the tests to be run separately on different databases (MySQL and SQLite), allowing for more robust testing and validation of the code base across different database environments.

@snipe snipe merged commit 98ef687 into snipe:develop Jan 4, 2024
7 checks passed
@marcusmoore marcusmoore deleted the chore/sc-24386 branch January 4, 2024 22:51
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