diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 4840d26..1d6c924 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -14,9 +14,38 @@ concurrency: cancel-in-progress: true jobs: + changes: + name: Detect changes + runs-on: ubuntu-latest + permissions: + contents: read + outputs: + php: ${{ steps.changed-files.outputs.any_modified }} + + steps: + - name: Checkout code + uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 + with: + persist-credentials: false + + - name: Get changed files + id: changed-files + uses: tj-actions/changed-files@9426d40962ed5378910ee2e21d5f8c6fcbf2dd96 # v47.0.6 + with: + files: | + bin/** + src/** + tests/** + composer.json + phpunit.xml.dist + .github/workflows/tests.yml + **.php + php-tests: name: PHP ${{ matrix.php }} - ${{ matrix.stability }} runs-on: ubuntu-latest + needs: [changes] + if: needs.changes.outputs.php == 'true' permissions: contents: read @@ -50,11 +79,11 @@ jobs: php-tests-result: name: PHP tests runs-on: ubuntu-latest - needs: [php-tests] + needs: [changes, php-tests] if: always() permissions: {} steps: - name: Fail if any job failed - if: needs.php-tests.result != 'success' && needs.php-tests.result != 'skipped' + if: needs.changes.result != 'success' || (needs.php-tests.result != 'success' && needs.php-tests.result != 'skipped') run: exit 1 diff --git a/CHANGELOG.md b/CHANGELOG.md index d3d18c9..fdc95f4 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,21 @@ # Release Notes +## 3.7.0 (2026-10-12) + +### What's new +- Prompt for Statamic license key before installing [#117](https://github.com/statamic/cli/issues/117) by @jasonvarga +- Add option to remember stars [#119](https://github.com/statamic/cli/issues/119) by @jasonvarga +- Bump minimum PHP and dependency versions [#115](https://github.com/statamic/cli/issues/115) by @jasonvarga + +### What's fixed +- Collapse install output with `task()` [#110](https://github.com/statamic/cli/issues/110) by @duncanmcclean +- Show success message in a callout box [#114](https://github.com/statamic/cli/issues/114) by @jasonvarga +- Tidy up install step output [#118](https://github.com/statamic/cli/issues/118) by @jasonvarga +- Recommend cpx for installing the CLI tool [#111](https://github.com/statamic/cli/issues/111) by @duncanmcclean +- Fix old version warning when running from a local checkout [#113](https://github.com/statamic/cli/issues/113) by @jasonvarga + + + ## 3.6.4 (2026-07-29) ### What's new