-
Notifications
You must be signed in to change notification settings - Fork 1
50 lines (43 loc) · 1.47 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
45
46
47
48
49
50
name: CI
on: ['push', 'pull_request']
jobs:
ci:
name: PHP ${{ matrix.php }} - ${{ matrix.os }} - ${{ matrix.dependency-version }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, macos-latest]
php: ['8.1']
dependency-version: [prefer-stable]
steps:
- name: Get latest code
uses: actions/checkout@v2
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
extensions: pcntl, mcrypt, openssl
ini-values: disable_functions, error_reporting=E_ALL
tools: composer:v2
coverage: xdebug
- name: Setup Problem Matches
run: |
echo "::add-matcher::${{ runner.tool_cache }}/php.json"
echo "::add-matcher::${{ runner.tool_cache }}/phpunit.json"
- name: Install PHP 8.1 dependencies
run: composer update --${{ matrix.dependency-version }} --no-interaction --no-progress
- name: PHP Static Analysis for PHP 8.1
run: ./vendor/bin/phpstan
- name: Run Tests for PHP 8.1
run: ./vendor/bin/pest --coverage
support:
needs: [ci]
name: Discord Notification
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- uses: sebastianpopp/discord-action@releases/v1
with:
webhook: ${{ secrets.WEBHOOK_TOKEN }}
message: "**❤️ SUPPORT ONGOING DEVELOPMENT**\n➡️ https://github.com/Awilum#support-me"