forked from psliwa/image-optimizer
-
Notifications
You must be signed in to change notification settings - Fork 5
33 lines (31 loc) · 949 Bytes
/
ci-php.yml
File metadata and controls
33 lines (31 loc) · 949 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
name: CI - PHP
on: [push]
jobs:
test_php:
runs-on: ubuntu-latest
strategy:
matrix:
php: ['8.0', '8.3']
name: PHP-${{ matrix.php }}-composer${{ matrix.composer_flags }}
steps:
- name: Checkout code
uses: actions/checkout@v5
- name: Cache PHP dependencies
uses: actions/cache@v4
with:
path: vendor
key: ${{ runner.OS }}-build-${{ hashFiles('**/composer.lock') }}
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
extensions: mbstring, gd, imagick
coverage: none
- name: Install app dependencies
run: |
sudo apt-get install -y jpegoptim pngquant gifsicle optipng libjpeg-progs
npm install -g svgo@2.8.0
- name: Install PHP dependencies
run: composer update --no-interaction
- name: Run Tests
run: composer test