Skip to content

Commit

Permalink
Creating github workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
hamidgh83 committed Feb 17, 2024
1 parent f84b88a commit 5880ff3
Showing 1 changed file with 39 additions and 0 deletions.
39 changes: 39 additions & 0 deletions .github/workflows/php.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: Build

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

permissions:
contents: read

jobs:
test:
runs-on: ubuntu-latest

strategy:
matrix:
php-version: [7.4, 8.0, 8.1, 8.2]

steps:
- uses: actions/checkout@v2

- name: Set up PHP ${{ matrix.php-version }}
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php-version }}
coverage: none

- name: Validate composer.json
run: composer validate --no-check-all --strict

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

- name: Run phpstan
run: composer run-script phpstan

- name: Run test suite
run: composer run-script test

0 comments on commit 5880ff3

Please sign in to comment.