Skip to content

Commit

Permalink
ci: add formats workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
lombervid committed Jul 11, 2023
1 parent 3457950 commit 59d961d
Showing 1 changed file with 44 additions and 0 deletions.
44 changes: 44 additions & 0 deletions .github/workflows/formats.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
name: Formats

on:
push:
branches: ['main']
pull_request:
branches: ['main']

permissions:
contents: read

jobs:
build:
runs-on: ubuntu-latest

strategy:
fail-fast: true
matrix:
php: [8.1, 8.2]

name: PHP ${{ matrix.php }}

steps:
- name: Checkout
uses: actions/checkout@v3

- name: Setup PHP Action
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
extensions: curl, xml, mbstring, zip
coverage: none

- name: Validate composer.json and composer.lock
run: composer validate --strict

- name: Install dependencies
run: composer install --prefer-dist --no-progress

- name: Coding style checks
run: vendor/bin/phpcs

- name: Static analysis checks
run: vendor/bin/phpcs

0 comments on commit 59d961d

Please sign in to comment.