build(deps-dev): bump friendsofphp/php-cs-fixer from 3.69.1 to 3.70.0 #2235
Workflow file for this run
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: Phar build and update test | |
on: | |
push: | |
paths: | |
- "bin/**" | |
- "config.yaml" | |
- "composer.json" | |
- "composer.lock" | |
- "res/**" | |
- "scoper.inc.php" | |
- "src/**" | |
- "version.txt" | |
pull_request: | |
paths: | |
- "bin/**" | |
- "config.yaml" | |
- "composer.json" | |
- "composer.lock" | |
- "res/**" | |
- "scoper.inc.php" | |
- "src/**" | |
- "version.txt" | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Setup PHP | |
uses: shivammathur/setup-php@v2 | |
with: | |
tools: composer:2 | |
php-version: '8.2' | |
- name: Checkout PR | |
uses: actions/[email protected] | |
if: github.event_name == 'pull_request' | |
with: | |
ref: ${{ github.event.pull_request.head.sha }} | |
- name: Checkout HEAD | |
uses: actions/[email protected] | |
if: github.event_name == 'push' | |
- name: Check Security | |
uses: symfonycorp/security-checker-action@v5 | |
- name: Validate composer.json and composer.lock | |
run: composer validate --strict | |
- name: Get Composer Cache Directory | |
id: composer-cache | |
run: echo "dir=$(composer config cache-files-dir)" >> "$GITHUB_OUTPUT" | |
shell: bash | |
- uses: actions/cache@v4 | |
with: | |
path: ${{ steps.composer-cache.outputs.dir }} | |
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }} | |
restore-keys: | | |
${{ runner.os }}-composer- | |
- name: Install dependencies | |
if: steps.composer-cache.outputs.cache-hit != 'true' | |
run: composer install --prefer-dist --no-progress --no-suggest | |
- name: Create phar | |
run: bash ./build.sh && php ./n98-magerun2.phar --version && mv ./n98-magerun2.phar ./n98-magerun2.phar.original | |
- name: Update to the unstable version | |
run: cp ./n98-magerun2.phar.original ./n98-magerun2.phar && php ./n98-magerun2.phar self-update --unstable && ./n98-magerun2.phar --version | |
- name: Update to the latest version | |
run: cp ./n98-magerun2.phar.original ./n98-magerun2.phar && ./n98-magerun2.phar self-update && ./n98-magerun2.phar --version | |
- name: Rollback phar to a specific version | |
run: cp ./n98-magerun2.phar.original ./n98-magerun2.phar && ./n98-magerun2.phar self-update 7.5.0 && ./n98-magerun2.phar --version |