-
Notifications
You must be signed in to change notification settings - Fork 1
44 lines (44 loc) · 1.28 KB
/
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
38
39
40
41
42
43
44
name: ci
on:
push:
branches:
- '*.x'
tags:
- '*'
pull_request:
schedule:
- cron: '0 0 * * *'
jobs:
ci:
runs-on: ubuntu-latest
strategy:
fail-fast: true
matrix:
include:
- php: '8.2'
stability: prefer-stable
name: PHP ${{ matrix.php }} - ${{ matrix.stability }}
steps:
- name: Check Out Code
uses: actions/checkout@v4
- name: Set Up PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
extensions: curl, dom, libxml, mbstring, pcntl, sqlite3, xdebug, zip
tools: composer:v2
coverage: xdebug
- name: Install Dependencies
run: composer update --${{ matrix.stability }} --prefer-dist --no-interaction --no-progress
- name: Run Tests
run: composer phpunit
- name: Run Linter
run: composer phpcs-test
- name: Run Psalm Static Analysis
run: composer psalm -- --shepherd
- name: Upload Coverage Results To Coveralls
env:
COVERALLS_REPO_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
composer global require php-coveralls/php-coveralls
php-coveralls --coverage_clover=./.coverage/clover.xml --json_path=./coveralls-upload.json -v