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

Add end-to-end tests #95

Merged
merged 24 commits into from
Jul 8, 2022
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Correct path
  • Loading branch information
theofidry committed Jul 8, 2022
commit 90e81be9be9cc6cf5e9f05afdf931e6b90b7074c
7 changes: 4 additions & 3 deletions .github/workflows/tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,10 @@ jobs:
if: github.event_name == 'pull_request'
run: composer global require bamarni/composer-bin-plugin:dev-${GITHUB_SHA}

- name: "Install bin plugin globally (PR)"
if: github.event_name == 'pull_request'
run: find e2e -maxdepth 1 -type d \( ! -name . \) -exec bash -c "composer require bamarni/composer-bin-plugin:dev-${GITHUB_SHA}" \;

- name: "Install bin plugin globally (master)"
if: github.event_name != 'pull_request'
run: composer global require bamarni/composer-bin-plugin:dev-master
Expand All @@ -54,9 +58,6 @@ jobs:
with:
dependency-versions: "highest"

- name: "Remove global bin"
run: composer global remove bamarni/composer-bin-plugin

- name: "Validate composer.json"
run: "composer validate --strict --no-check-lock"

Expand Down
9 changes: 5 additions & 4 deletions e2e/scenario0/composer.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
{
"repositories": [{
"type": "path",
"url": "../../"
}
"repositories": [
{
"type": "path",
"url": "../../"
}
],
"require-dev": {
"bamarni/composer-bin-plugin": "dev-master"
Expand Down
9 changes: 5 additions & 4 deletions e2e/scenario1/composer.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
{
"repositories": [{
"type": "path",
"url": "../../"
}
"repositories": [
{
"type": "path",
"url": "../../"
}
],
"require-dev": {
"bamarni/composer-bin-plugin": "dev-master"
Expand Down