[OBPIH-6385, OBPIH-6386] Run API tests in GitHub CI flows #4677
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Covers both of:
Allows us to run all our backend tests when a PR is created or updated, and also when a commit is merged to develop, master, or release/*.
We can also now define the database that our tests run against via:
TEST_DATABASE=mysql:5.7.44 ./grailsw test-app
and our github action will run all the backend tests against MySQL 5.7, MySQL 8, and MariaDB.When run in a PR, it looks like the following:
![Screenshot from 2024-06-17 15-03-23](https://private-user-images.githubusercontent.com/6844376/340449904-2fd7815c-2e41-426a-8818-59308f912377.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjEyNjgzNDMsIm5iZiI6MTcyMTI2ODA0MywicGF0aCI6Ii82ODQ0Mzc2LzM0MDQ0OTkwNC0yZmQ3ODE1Yy0yZTQxLTQyNmEtODgxOC01OTMwOGY5MTIzNzcucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI0MDcxOCUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNDA3MThUMDIwMDQzWiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9MGI4ZDE5NWYzOTYxNTE0MjU1NTc5YmQ5ZWIxNzFhZjA0N2M3N2M1ZTZhM2E2MmU4NDMyNmExNDEyYjQ0ZTk4OSZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QmYWN0b3JfaWQ9MCZrZXlfaWQ9MCZyZXBvX2lkPTAifQ.Oe92mhwURfsYKUyBI6cMrtpVsVn6pmm3xvW1WcoYtMg)