Test create project #3
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
name: Test create project | |
on: | |
workflow_dispatch: | |
env: | |
WP_CLI_ALLOW_ROOT: 1 | |
jobs: | |
create-project: | |
name: Create a new project | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check out source code | |
uses: actions/checkout@v4 | |
- name: Setup PHP | |
uses: shivammathur/setup-php@v2 | |
with: | |
php-version: '8.3' | |
tools: composer, wp-cli | |
- name: Validate composer.json | |
run: composer validate | |
- name: run composer | |
run: composer create-project zaherg/litepress litepress | |
- name: Verify WordPress installation | |
run: | | |
cd litepress | |
vendor/bin/wp core is-installed | |
reinstall-project: | |
name: Reinstall project | |
runs-on: ubuntu-latest | |
needs: [create-project] | |
steps: | |
- name: Check out source code | |
uses: actions/checkout@v4 | |
- name: Setup PHP | |
uses: shivammathur/setup-php@v2 | |
with: | |
php-version: '8.3' | |
tools: composer, wp-cli | |
- name: Validate composer.json | |
run: composer validate | |
- name: run composer | |
run: composer create-project zaherg/litepress litepress | |
- name: run reinstall | |
run: | | |
cd litepress | |
./reinstall.sh |