File: ci.yml

package info (click to toggle)
php-giggsey-libphonenumber 9.0.23-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 22,492 kB
  • sloc: php: 485,443; sh: 107; makefile: 37
file content (53 lines) | stat: -rw-r--r-- 1,482 bytes parent folder | download
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
51
52
53
name: "Tests"

on:
  push:
    paths-ignore:
      - 'docs/**'
  pull_request:
    paths-ignore:
      - 'docs/**'

jobs:
  tests:
    name: PHP ${{ matrix.php-version }} (${{ matrix.arch }}) - ${{ matrix.composer }}
    runs-on: ubuntu-latest
    container: shivammathur/node:latest-${{ matrix.arch }}
    strategy:
      fail-fast: false
      matrix:
        arch: [ "amd64", "i386" ]
        php-version: [8.1, 8.2, 8.3, 8.4, 8.5]
        composer: [highest, lowest]
        exclude:
          # PHP 8.5 doesn't work with lowest due to our deps loading nikic/php-parser@5.3
          - composer: lowest
            php-version: 8.5
          # PHP 8.5 and i386 seems to timeout due to libxml2 issues
          - php-version: 8.5
            arch: i386

    steps:
      - name: Checkout
        uses: actions/checkout@v4

      - name: Setup PHP, with composer and extensions
        uses: shivammathur/setup-php@v2
        with:
          php-version: ${{ matrix.php-version }}
          extensions: dom
          coverage: xdebug
          tools: composer:v2

      - uses: "ramsey/composer-install@v3"
        with:
          dependency-versions: "${{ matrix.composer }}"

      - name: composer validate
        run: composer validate --strict

      - name: Run unit tests
        run: "./vendor/bin/phpunit --colors=always --coverage-clover build/logs/clover.xml --coverage-text"

      - name: Publish coverage report to Codecov
        uses: "codecov/codecov-action@v5"