mirror of https://github.com/pixelfed/pixelfed
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
47 lines
849 B
YAML
47 lines
849 B
YAML
name: PHP - Pint
|
|
permissions:
|
|
contents: read
|
|
pull-requests: write
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- main
|
|
- dev
|
|
- staging
|
|
- unstable
|
|
pull_request:
|
|
branches:
|
|
- main
|
|
- dev
|
|
- staging
|
|
- unstable
|
|
|
|
jobs:
|
|
lint:
|
|
runs-on: ubuntu-latest
|
|
strategy:
|
|
fail-fast: true
|
|
matrix:
|
|
php: [8.5]
|
|
|
|
steps:
|
|
- name: Checkout code
|
|
uses: actions/checkout@v7
|
|
|
|
- name: Setup PHP
|
|
uses: shivammathur/setup-php@v2
|
|
with:
|
|
php-version: ${{ matrix.php }}
|
|
extensions: json, dom, curl, libxml, mbstring
|
|
coverage: none
|
|
|
|
- name: Install Pint
|
|
run: composer global require laravel/pint
|
|
|
|
- name: Run Pint
|
|
run: pint --test
|
|
|
|
# - name: Commit linted files
|
|
# uses: stefanzweifel/git-auto-commit-action@v5
|