-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add Roave Backwards Compatibility Check
Includes a composer script and a new Github Action workflow
- Loading branch information
1 parent
5058e1a
commit a2102dd
Showing
2 changed files
with
43 additions
and
0 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
name: Roave Backwards Compatibility Check | ||
on: | ||
push: | ||
pull_request: | ||
jobs: | ||
check: | ||
runs-on: ubuntu-latest | ||
timeout-minutes: 20 | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
- name: Install Nix | ||
uses: DeterminateSystems/nix-installer-action@v9 | ||
- name: Setup Cachix | ||
uses: cachix/cachix-action@v13 | ||
with: | ||
name: opentelemetry | ||
extraPullNames: nix-shell, php-src-nix | ||
authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}' | ||
- name: Setup Nix magic cache | ||
uses: DeterminateSystems/magic-nix-cache-action@v2 | ||
- name: Instantiate Nix develop | ||
uses: nicknovitski/nix-develop@v1 | ||
- name: Get composer cache directory | ||
id: composercache | ||
run: echo "dir=$(composer config cache-files-dir)" >> $GITHUB_OUTPUT | ||
- name: Cache dependencies | ||
uses: actions/cache@v3 | ||
with: | ||
path: ${{ steps.composercache.outputs.dir }} | ||
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.json') }} | ||
restore-keys: ${{ runner.os }}-composer- | ||
- name: List PHP installed extensions | ||
run: php -m | ||
- name: Update project dependencies | ||
run: | | ||
composer update --no-interaction --no-progress --ansi | ||
- name: Check for BC breaks | ||
run: composer bc-checks |
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