Skip to content

Organizing github actions #1

Organizing github actions

Organizing github actions #1

Workflow file for this run

name: run-tests
on:
workflow_dispatch:
push:
branches-ignore:
- "dependabot/npm_and_yarn/*"
jobs:
test:
runs-on: ubuntu-latest
strategy:
fail-fast: true
matrix:
os: [ubuntu-latest]
php: [8.02, 8.1, 8.2, 8.3]
name: PHP ${{ matrix.php }}
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
coverage: none
- name: Validate composer.json and composer.lock
run: composer validate
- name: Install dependencies
run: composer install --prefer-dist --no-progress --no-suggest
- name: Copy environment file
run: cp .env.example .env
- name: Execute tests
run: composer test