fix(tests): fix command test units location #118
This file contains hidden or 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: Update Wiki | |
| on: | |
| workflow_call: | |
| workflow_dispatch: | |
| push: | |
| branches: ["main"] | |
| permissions: | |
| contents: write | |
| concurrency: | |
| group: update-wiki-${{ github.ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| wiki: | |
| name: Update Wiki | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v6 | |
| with: | |
| token: ${{ github.token }} | |
| submodules: recursive | |
| fetch-depth: 0 | |
| - name: Cache Composer dependencies | |
| uses: actions/cache@v5 | |
| with: | |
| path: /tmp/composer-cache | |
| key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }} | |
| restore-keys: | | |
| ${{ runner.os }}-composer- | |
| - name: Install dependencies | |
| uses: php-actions/composer@v6 | |
| env: | |
| COMPOSER_AUTH: '{"github-oauth": {"github.com": "${{ github.token }}"} }' | |
| COMPOSER_CACHE_DIR: /tmp/composer-cache | |
| with: | |
| php_version: '8.3' | |
| command: 'install' | |
| args: '--prefer-dist --no-progress --no-interaction --no-scripts' | |
| - name: Prepare wiki submodule branch | |
| working-directory: .github/wiki | |
| run: | | |
| git fetch origin master | |
| git switch -C master --track origin/master || git switch master | |
| git reset --hard origin/master | |
| git clean -fd | |
| - name: Create Docs Markdown | |
| uses: php-actions/composer@v6 | |
| with: | |
| php_version: '8.3' | |
| command: 'dev-tools' | |
| args: 'wiki -- --target=.github/wiki' | |
| - name: Commit & push wiki submodule | |
| id: wiki_commit | |
| uses: EndBug/add-and-commit@v10 | |
| with: | |
| cwd: .github/wiki | |
| add: . | |
| message: "Update wiki docs" | |
| default_author: github_actions | |
| pull: "--rebase --autostash" | |
| push: true | |
| - name: Commit parent repo submodule pointer | |
| if: steps.wiki_commit.outputs.committed == 'true' | |
| id: parent_commit | |
| uses: EndBug/add-and-commit@v10 | |
| with: | |
| add: .github/wiki | |
| message: "Update wiki submodule pointer" | |
| default_author: github_actions | |
| pull: "--rebase --autostash" | |
| push: true |