Skip to content

Commit

Permalink
ci: add github workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
rgomezcasas committed Oct 23, 2023
1 parent c96ae9b commit 6aa1ff9
Showing 1 changed file with 33 additions and 0 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: CI

on:
push:
branches:
- main
pull_request:

jobs:
build:

runs-on: ubuntu-latest

strategy:
matrix:
php-versions: ['8.0', '8.1', '8.2']

name: PHP ${{ matrix.php-versions }}

steps:
- uses: actions/checkout@v4

- name: 🐘 Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php-versions }}
tools: composer:v2

- name: ⬇️ Install dependencies
run: composer install

- name: 🏮 Lint
run: ./vendor/bin/ecs check

0 comments on commit 6aa1ff9

Please sign in to comment.