Skip to content

Commit

Permalink
chore: workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
pactode committed Jul 13, 2023
1 parent 30e4670 commit 0d25c33
Show file tree
Hide file tree
Showing 4 changed files with 47 additions and 56 deletions.
46 changes: 46 additions & 0 deletions .github/workflows/formats.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
name: Formats

on: ['push', 'pull_request']

jobs:
ci:
runs-on: ${{ matrix.os }}

strategy:
fail-fast: true
matrix:
os: [ubuntu-latest]
php: [8.1]
dependency-version: [prefer-lowest, prefer-stable]

name: Formats P${{ matrix.php }} - ${{ matrix.os }} - ${{ matrix.dependency-version }}

steps:
- uses: actions/checkout@v2
with:
ref: ${{ github.head_ref }}

- name: Cache dependencies
uses: actions/cache@v1
with:
path: ~/.composer/cache/files
key: dependencies-php-${{ matrix.php }}-composer-${{ hashFiles('composer.json') }}

- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: 8.1
extensions: dom, curl, libxml, mbstring, zip, pcntl, pdo, pdo_mysql, bcmath, soap, intl, gd, exif, iconv, imagick
coverage: none

- name: Install Composer dependencies
run: composer update --${{ matrix.dependency-version }} --no-interaction --prefer-dist

- name: Run Pint
run: ./vendor/bin/pint

- uses: stefanzweifel/git-auto-commit-action@v4
with:
commit_message: Apply style changes
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
30 changes: 0 additions & 30 deletions .github/workflows/php-cs-fixer.yml

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -41,4 +41,4 @@ jobs:
composer update --${{ matrix.dependency-version }} --prefer-dist --no-interaction --no-suggest
- name: Execute tests
run: vendor/bin/phpunit
run: vendor/bin/pest -v
25 changes: 0 additions & 25 deletions .scrutinizer.yml

This file was deleted.

0 comments on commit 0d25c33

Please sign in to comment.