From 634270455bd216992cc8ae373b4744f27846afc5 Mon Sep 17 00:00:00 2001 From: USAMI Kenta Date: Sat, 7 Jan 2023 02:10:04 +0900 Subject: [PATCH] Add create-project test to GitHub Actions Signed-off-by: USAMI Kenta --- .github/workflows/create-project.yml | 36 ++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 .github/workflows/create-project.yml diff --git a/.github/workflows/create-project.yml b/.github/workflows/create-project.yml new file mode 100644 index 0000000..dc2582b --- /dev/null +++ b/.github/workflows/create-project.yml @@ -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"