Skip to content

Commit

Permalink
fix(ci): fix
Browse files Browse the repository at this point in the history
  • Loading branch information
PiLep committed Dec 30, 2023
1 parent d514159 commit fbb3f3a
Showing 1 changed file with 15 additions and 11 deletions.
26 changes: 15 additions & 11 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,27 +13,30 @@ on:
- main
- develop
- feature/*

permissions:
contents: write

jobs:
tests:
name: Tests
name: Tests πŸ§ͺ

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4

- name: Set up PHP
- name: Set up PHP 🐘
uses: shivammathur/setup-php@v2
with:
php-version: '8.2'
coverage: xdebug
extensions: zip

- name: Install dependencies
- name: Install dependencies πŸ“¦
run: composer install --prefer-dist --no-progress --no-suggest

- name: Run PHPUnit tests
- name: Run PHPUnit tests πŸ§ͺ
uses: php-actions/phpunit@v3
env:
XDEBUG_MODE: coverage
Expand All @@ -43,35 +46,36 @@ jobs:
php_extensions: xdebug zip
args: tests --coverage-clover ./coverage.xml

- name: Upload to Codecov
- name: Upload to Codecov πŸ“Š
uses: codecov/codecov-action@v3
with:
token: ${{ secrets.CODE_COV_TOKEN }}
files: ./coverage.xml
verbose: true

documentation:
name: Documentation
name: Documentation πŸ“š

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
- name: Checkout πŸ›ŽοΈ
uses: actions/checkout@v3

- name: Set up PHP
- name: Set up PHP 🐘
uses: shivammathur/setup-php@v2
with:
php-version: '8.2'
extensions: zip

- name: Install dependencies
- name: Install dependencies πŸ“¦
run: composer install --prefer-dist --no-progress --no-suggest

- name: Generate documentation
- name: Generate documentation πŸ“š
# create documentation folder if not exists then run phpdoc
run: docker run --rm -v ${{ github.workspace }}:/data phpdoc/phpdoc:latest run -d src -t docs

- name: Deploy documentation
- name: Deploy documentation πŸš€
uses: JamesIves/[email protected]
with:
branch: documentation
Expand Down

0 comments on commit fbb3f3a

Please sign in to comment.