diff options
| author | Maksymilian Jopek <maks@jopek.eu> | 2023-03-26 18:31:50 +0200 |
|---|---|---|
| committer | Maksymilian Jopek <maks@jopek.eu> | 2023-03-26 18:31:50 +0200 |
| commit | 5aa7c4f9499135dd12162045e441f5215ee050aa (patch) | |
| tree | 4f95f9f2daedb0053a0b6a95a8e354d76b3c115d /php/tcpdf/.github/workflows | |
| download | calendrier-menstruel-5aa7c4f9499135dd12162045e441f5215ee050aa.tar.gz calendrier-menstruel-5aa7c4f9499135dd12162045e441f5215ee050aa.tar.zst calendrier-menstruel-5aa7c4f9499135dd12162045e441f5215ee050aa.zip | |
Full working app
Diffstat (limited to 'php/tcpdf/.github/workflows')
| -rw-r--r-- | php/tcpdf/.github/workflows/lint-docs.yml | 20 | ||||
| -rw-r--r-- | php/tcpdf/.github/workflows/tests.yml | 56 |
2 files changed, 76 insertions, 0 deletions
diff --git a/php/tcpdf/.github/workflows/lint-docs.yml b/php/tcpdf/.github/workflows/lint-docs.yml new file mode 100644 index 0000000..7cc3850 --- /dev/null +++ b/php/tcpdf/.github/workflows/lint-docs.yml @@ -0,0 +1,20 @@ +name: lint php documentation + +on: + push: + pull_request: + types: [opened, synchronize, reopened] + branches: + - main + +jobs: + lint-docs: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - name: lint php documentation + uses: sudo-bot/action-doctum@dev + with: + config-file: scripts/doctum.php + method: "parse" + cli-args: "--output-format=github --no-ansi --no-progress -v --ignore-parse-errors" diff --git a/php/tcpdf/.github/workflows/tests.yml b/php/tcpdf/.github/workflows/tests.yml new file mode 100644 index 0000000..64f2214 --- /dev/null +++ b/php/tcpdf/.github/workflows/tests.yml @@ -0,0 +1,56 @@ +name: Run tests + +on: + push: + pull_request: + types: [opened, synchronize, reopened] + branches: + - main + +jobs: + test-php: + name: Test on php ${{ matrix.php-version }} and ${{ matrix.os }} + runs-on: ${{ matrix.os }} + continue-on-error: ${{ matrix.experimental }} + strategy: + fail-fast: false + matrix: + experimental: [false] + coverage-extension: [pcov] + php-version: ["7.1", "7.2", "7.3", "7.4", "8.0"] + os: [ubuntu-latest] + include: + - { php-version: '5.3', experimental: false, os: ubuntu-latest, coverage-extension: 'xdebug' } + - { php-version: '5.4', experimental: false, os: ubuntu-latest, coverage-extension: 'xdebug' } + - { php-version: '5.5', experimental: false, os: ubuntu-latest, coverage-extension: 'xdebug' } + - { php-version: '5.6', experimental: false, os: ubuntu-latest, coverage-extension: 'xdebug' } + - { php-version: '8.1', experimental: true, os: ubuntu-latest, coverage-extension: 'pcov' } + steps: + - uses: actions/checkout@v2 + - name: Install pdfinfo + run: sudo apt-get install -y poppler-utils + - name: Use php ${{ matrix.php-version }} + uses: shivammathur/setup-php@v2 + with: + php-version: ${{ matrix.php-version }} + coverage: ${{ matrix.coverage-extension }} + extensions: bcmath, imagick, gd + ini-values: display_errors=on, error_reporting=-1 + - name: List php modules + run: php -m + - name: List php modules using "no php ini" mode + run: php -m -n + - name: Cache module + uses: actions/cache@v2 + with: + path: ~/.composer/cache/ + key: composer-cache + - name: Install dependencies + run: composer install --no-interaction + - name: Run php tests + run: ./tests/launch.sh + - name: Send coverage + uses: codecov/codecov-action@v1 + with: + flags: php-${{ matrix.php-version }}-${{ matrix.os }} + name: php-${{ matrix.php-version }}-${{ matrix.os }} |
