-
Notifications
You must be signed in to change notification settings - Fork 3
37 lines (29 loc) · 841 Bytes
/
ci.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
name: CI
on:
push:
branches:
- '**'
jobs:
test:
name: Run PHPUnit Tests
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Set up PHP
uses: shivammathur/setup-php@v2
with:
php-version: '8.3'
- name: Install SeasClick extension
run: |
sudo apt-get update
sudo apt-get install -y php-pear php-dev gcc make
sudo pecl install seasclick
env:
ACCEPT_PECL_LICENSE: 'yes'
- name: Enable SeasClick extension
run: echo "extension=SeasClick.so" | sudo tee /etc/php/8.3/cli/conf.d/30-seasclick.ini
- name: Install dependencies
run: composer install --prefer-dist --no-progress --no-suggest
- name: Run PHPUnit
run: vendor/bin/phpunit