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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

GH Actions: re-work the integration tests #221

Merged

Commits on Jan 20, 2022

  1. GH Actions: re-work the integration tests

    This removes three keys from the integration test matrix in favour of adding steps for each of those options to the job.
    
    * The GitHub workspace is cleaned up between each run.
    * The Composer cache is removed between each run.
    
    This means that, in effect, the tests are being run in the same way as previously (clean install), but sequentially in one job instead of in parallel in different builds.
    
    This slims down the number of builds per run from 197 to 29.
    jrfnl committed Jan 20, 2022
    Copy the full SHA
    b1ca45f View commit details
    Browse the repository at this point in the history
  2. GH Actions: run integration tests for additional situations

    This adds the `tests/fixtures/no-lock-file` and `tests/fixtures/out-of-sync-lock` working directories to the matrix for the integration tests to test these situations more thoroughly on each commit as well.
    
    Fixes 219
    jrfnl committed Jan 20, 2022
    Copy the full SHA
    c267ed6 View commit details
    Browse the repository at this point in the history
  3. GH Actions: add extra job for unclean install test

    Add a job which tests "unclean" installs, i.e. running the action when there is already a `vendor` directory and a Composer `downloads` directory in place.
    jrfnl committed Jan 20, 2022
    Copy the full SHA
    3454cf5 View commit details
    Browse the repository at this point in the history

Commits on Jan 21, 2022

  1. Composer: require-dev the package used for testing

    .. in the root `composer.json`.
    jrfnl committed Jan 21, 2022
    Copy the full SHA
    9247389 View commit details
    Browse the repository at this point in the history
  2. Tests: update version constraints in test fixtures

    ... to allow for installing a wider range of versions of the `ehime/hello-world` package.
    
    Includes locking the version for the `with-lock-file` test to `1.0.3` so there are higher and lower versions to switch to during the tests and switching the "unclean" test to use that fixture as a base.
    jrfnl committed Jan 21, 2022
    Copy the full SHA
    a4633e0 View commit details
    Browse the repository at this point in the history