Skip to content

Commit

Permalink
Session 4.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Awilum committed Jul 3, 2022
1 parent dfeec39 commit ca2fd1d
Show file tree
Hide file tree
Showing 3 changed files with 50 additions and 52 deletions.
50 changes: 50 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,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: json, mbstring, pcntl
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"
12 changes: 0 additions & 12 deletions .github/workflows/static.yml

This file was deleted.

40 changes: 0 additions & 40 deletions .github/workflows/tests.yml

This file was deleted.

0 comments on commit ca2fd1d

Please sign in to comment.