-
Notifications
You must be signed in to change notification settings - Fork 20
48 lines (40 loc) · 1.28 KB
/
tests.yml
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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
name: Tests
on:
push:
branches:
- master
pull_request:
jobs:
unitTests:
strategy:
max-parallel: 6
matrix:
phpVersion: ['7.3', '7.4', '8.0', '8.1', '8.2', '8.3']
fail-fast: false
runs-on: ubuntu-latest
name: Linux / PHP ${{ matrix.phpVersion }}
steps:
- name: Checkout changes
uses: actions/checkout@v4
- name: Install NPM dependencies
run: |
sudo apt-get -y install jpegoptim libjpeg-progs optipng
npm install
- name: Install Tailwind CSS Standalone CLI
run: |
wget -O tailwindcss https://github.com/tailwindlabs/tailwindcss/releases/latest/download/tailwindcss-linux-x64
chmod +x tailwindcss
mv tailwindcss /usr/bin/
- name: Install PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.phpVersion }}
tools: composer
extensions: curl, mbstring, xml
- name: Install Composer dependencies
run: composer install --no-interaction --no-progress --no-suggest
- name: Setup problem matchers for PHPUnit
if: matrix.phpVersion == '8.3'
run: echo "::add-matcher::${{ runner.tool_cache }}/phpunit.json"
- name: Run tests
run: ./bin/phpunit