Skip to content

Commit

Permalink
Tests: update version constraints in test fixtures
Browse files Browse the repository at this point in the history
... 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.
  • Loading branch information
jrfnl committed Jan 21, 2022
1 parent 9247389 commit 5477676
Show file tree
Hide file tree
Showing 6 changed files with 17 additions and 25 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/continuous-integration.yml
Expand Up @@ -242,13 +242,17 @@ jobs:

- name: "Test: plain install"
uses: ./
with:
working-directory: 'tests/fixtures/with-lock-file'

- name: "Test: switch to lowest dependencies"
uses: ./
with:
working-directory: 'tests/fixtures/with-lock-file'
dependency-versions: 'lowest'

- name: "Test: switch to highest dependencies"
uses: ./
with:
working-directory: 'tests/fixtures/with-lock-file'
dependency-versions: 'highest'
2 changes: 1 addition & 1 deletion tests/expect/composer.json
Expand Up @@ -10,7 +10,7 @@
}
],
"require": {
"ehime/hello-world": "1.0.5"
"ehime/hello-world": "^1.0.0"
},
"config": {
"allow-plugins": false
Expand Down
2 changes: 1 addition & 1 deletion tests/expect/composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion tests/fixtures/no-lock-file/composer.json
Expand Up @@ -10,7 +10,7 @@
}
],
"require": {
"ehime/hello-world": "1.0.5"
"ehime/hello-world": "^1.0.0"
},
"config": {
"allow-plugins": false
Expand Down
2 changes: 1 addition & 1 deletion tests/fixtures/with-lock-file/composer.json
Expand Up @@ -10,7 +10,7 @@
}
],
"require": {
"ehime/hello-world": "1.0.5"
"ehime/hello-world": "^1.0.0"
},
"config": {
"allow-plugins": false
Expand Down
30 changes: 9 additions & 21 deletions tests/fixtures/with-lock-file/composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 5477676

Please sign in to comment.