Skip to content

Conversation

@darcywong00
Copy link
Contributor

@darcywong00 darcywong00 commented Apr 28, 2025

Fixes: #493

Moving scripts for tests from composer.json into ci.yml and build.sh test

Testing involves:

  • PHP unit test (copied from help.keyman)
  • Lint
  • Link checking

This involves passing build.sh build --debug parameter so the composer install step installs dev dependencies.

Test-bot: skip

@darcywong00 darcywong00 added this to the A19S2 milestone Apr 28, 2025
@darcywong00 darcywong00 modified the milestones: A19S2, A19S3 May 10, 2025
@keyman-server keyman-server modified the milestones: A19S3, A19S4 May 26, 2025
@keyman-server keyman-server modified the milestones: A19S4, A19S5 Jun 8, 2025
@keyman-server keyman-server modified the milestones: A19S5, A19S6 Jun 22, 2025
@darcywong00 darcywong00 force-pushed the chore/clean-composer-scripts branch 3 times, most recently from dd97a69 to 7ed781d Compare June 28, 2025 02:57
@keyman-server keyman-server modified the milestones: A19S6, A19S7 Jul 6, 2025
@keyman-server keyman-server modified the milestones: A19S7, A19S8 Jul 20, 2025
@darcywong00 darcywong00 modified the milestones: A19S8, A19S9 Aug 2, 2025
@darcywong00 darcywong00 modified the milestones: A19S9, A19S10 Aug 16, 2025
@darcywong00 darcywong00 modified the milestones: A19S10, A19S11 Aug 29, 2025
@darcywong00 darcywong00 force-pushed the chore/clean-composer-scripts branch from 7ed781d to 187c116 Compare September 4, 2025 01:24
@github-actions github-actions bot added the chore label Sep 4, 2025
@keymanapp-test-bot
Copy link

keymanapp-test-bot bot commented Sep 4, 2025

User Test Results

Test specification and instructions

User tests are not required

@darcywong00 darcywong00 modified the milestones: A19S12, A19S13 Sep 27, 2025
@darcywong00 darcywong00 modified the milestones: A19S13, A19S14 Oct 11, 2025
@darcywong00 darcywong00 modified the milestones: A19S14, A19S15 Oct 24, 2025
@keyman-server keyman-server modified the milestones: A19S15, A19S16 Nov 8, 2025
@keyman-server keyman-server modified the milestones: A19S16, A19S17 Nov 22, 2025
@darcywong00 darcywong00 force-pushed the chore/clean-composer-scripts branch 3 times, most recently from 13cdf04 to 6d2e338 Compare November 26, 2025 03:35
* Add PHP unit test step
* Configure Docker image to install phpunit when BUILDER_CONFIGURATION=debug
@darcywong00 darcywong00 force-pushed the chore/clean-composer-scripts branch from 6d2e338 to 6206dc8 Compare November 26, 2025 04:10
builder_run_action clean clean_docker_container $KEYMAN_IMAGE_NAME $KEYMAN_CONTAINER_NAME
builder_run_action stop stop_docker_container $KEYMAN_IMAGE_NAME $KEYMAN_CONTAINER_NAME
builder_run_action build build_docker_container $KEYMAN_IMAGE_NAME $KEYMAN_CONTAINER_NAME
builder_run_action build build_docker_container $KEYMAN_IMAGE_NAME $KEYMAN_CONTAINER_NAME $BUILDER_CONFIGURATION
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This passes in the BUILDER_CONFIGURATION parameter for keymanapp/shared-sites#84

{
$this->assertTrue(true);
}
}
Copy link
Contributor Author

Choose a reason for hiding this comment

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

copied from help.keyman.com

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Should .htaccess block the /tests folder? Otherwise, I get this error

Fatal error: Uncaught Error: Class 'PHPUnit\Framework\TestCase' not found in /var/www/html/tests/InfrastructureTest.php:7 Stack trace: #0 {main} thrown in /var/www/html/tests/InfrastructureTest.php on line 7

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I added redirect in c3f1c8a

Copy link
Member

Choose a reason for hiding this comment

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

Hmm, unsure, probably fine?

@darcywong00 darcywong00 changed the title chore: Move composer.json scripts to other files chore: Move composer.json test scripts to build.sh test Nov 26, 2025
run: |
echo "TIER_TEST" > tier.txt
./build.sh build start
./build.sh configure build start --debug
Copy link
Contributor Author

Choose a reason for hiding this comment

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

--debug needed so Docker will build with dev dependencies

@darcywong00 darcywong00 marked this pull request as ready for review November 26, 2025 06:59
@darcywong00 darcywong00 requested a review from mcdurdin November 26, 2025 07:01
@darcywong00 darcywong00 merged commit c367548 into master Nov 28, 2025
5 checks passed
@darcywong00 darcywong00 deleted the chore/clean-composer-scripts branch November 28, 2025 00:23
@github-project-automation github-project-automation bot moved this to Done in Keyman Nov 28, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

chore: remove scripts from composer.json

4 participants