-
-
Notifications
You must be signed in to change notification settings - Fork 31
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add create-project test to GitHub Actions
Signed-off-by: USAMI Kenta <[email protected]>
- Loading branch information
Showing
1 changed file
with
36 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
name: "Create Project" | ||
|
||
on: | ||
pull_request: | ||
push: | ||
branches: | ||
- '[0-9]+.[0-9]+.x' | ||
- 'refs/pull/*' | ||
tags: | ||
|
||
jobs: | ||
build: | ||
strategy: | ||
matrix: | ||
php_version: | ||
- '@latest' | ||
- '@lowest' | ||
runs-on: ubuntu-latest | ||
timeout-minutes: 3 | ||
steps: | ||
- name: Checkout CI environment | ||
uses: laminas/laminas-continuous-integration-action@v1 | ||
with: | ||
php: ${{ matrix.php_version }} | ||
- name: Checkout sourcecode | ||
uses: actions/checkout@v3 | ||
- name: Test create-project | ||
run: | | ||
cd .. | ||
yes 1 | composer create-project mezzio/mezzio-skeleton test-new-project \ | ||
--repository='{"type": "path", "url": "./mezzio-skeleton"}' --stability=dev | ||
ls -la test-new-project | ||
cd test-new-project | ||
test -f config/container.php | ||
test -f config/routes.php | ||
echo "Successfully created project" |