Skip to content

Update a workflow file #15

Update a workflow file

Update a workflow file #15

Workflow file for this run

name: Tests
# This event setting prevents Github Actions from running twice when a pull request occurs
on:
push:
branches:
- master
pull_request:
branches:
- master
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
php: [7.4, 8.0, 8.1]
steps:
- name: Clone a repository
uses: actions/checkout@v4
- name: Install PHP ${{ matrix.php }}
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
- name: Install dependencies with Composer
uses: ramsey/composer-install@v2
- name: Run module tests
run : vendor/bin/phpunit
- name: Run code style checking
run : vendor/bin/phpcs
- name: Run a static analysis tool
run : vendor/bin/psalm