Skip to content

Commit

Permalink
Merge pull request #115 from zonuexe/feature/ci-install-archived
Browse files Browse the repository at this point in the history
Add `composer create-project` test to GitHub Actions
  • Loading branch information
Ocramius committed May 19, 2023
2 parents a0a6eab + 6342704 commit 65de3d5
Showing 1 changed file with 36 additions and 0 deletions.
36 changes: 36 additions & 0 deletions .github/workflows/create-project.yml
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"

0 comments on commit 65de3d5

Please sign in to comment.