|
49 | 49 | # run: sudo vendor/bin/phpunit |
50 | 50 | # env: |
51 | 51 | # GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
| 52 | + |
| 53 | + unit-tests-freebsd: |
| 54 | + runs-on: ubuntu-latest |
| 55 | + strategy: |
| 56 | + fail-fast: false |
| 57 | + matrix: |
| 58 | + php-versions: |
| 59 | + - '82' |
| 60 | + - '83' |
| 61 | + - '84' |
| 62 | + - '85' |
| 63 | + steps: |
| 64 | + - uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 #v7.0.0 |
| 65 | + with: |
| 66 | + persist-credentials: false |
| 67 | + - name: Test in FreeBSD |
| 68 | + uses: vmactions/freebsd-vm@5a72679103d223925653750faa878a143340fbd0 #v1.5.0 |
| 69 | + env: |
| 70 | + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
| 71 | + with: |
| 72 | + envs: 'GITHUB_TOKEN' |
| 73 | + usesh: true |
| 74 | + prepare: | |
| 75 | + pkg install -y \ |
| 76 | + php${{ matrix.php-versions }} \ |
| 77 | + php${{ matrix.php-versions }}-composer \ |
| 78 | + php${{ matrix.php-versions }}-ctype \ |
| 79 | + php${{ matrix.php-versions }}-curl \ |
| 80 | + php${{ matrix.php-versions }}-dom \ |
| 81 | + php${{ matrix.php-versions }}-filter \ |
| 82 | + php${{ matrix.php-versions }}-iconv \ |
| 83 | + php${{ matrix.php-versions }}-intl \ |
| 84 | + php${{ matrix.php-versions }}-mbstring \ |
| 85 | + php${{ matrix.php-versions }}-pcntl \ |
| 86 | + php${{ matrix.php-versions }}-phar \ |
| 87 | + php${{ matrix.php-versions }}-posix \ |
| 88 | + php${{ matrix.php-versions }}-session \ |
| 89 | + php${{ matrix.php-versions }}-simplexml \ |
| 90 | + php${{ matrix.php-versions }}-sodium \ |
| 91 | + php${{ matrix.php-versions }}-tokenizer \ |
| 92 | + php${{ matrix.php-versions }}-xml \ |
| 93 | + php${{ matrix.php-versions }}-xmlwriter \ |
| 94 | + php${{ matrix.php-versions }}-zip \ |
| 95 | + autoconf \ |
| 96 | + automake \ |
| 97 | + bison \ |
| 98 | + gmake \ |
| 99 | + pkgconf \ |
| 100 | + re2c \ |
| 101 | + git |
| 102 | + ln -sf /usr/local/bin/php${{ matrix.php-versions }} /usr/local/bin/php |
| 103 | + run: | |
| 104 | + composer config --global --auth github-oauth.github.com "$GITHUB_TOKEN" |
| 105 | + composer install |
| 106 | + vendor/bin/phpunit |
| 107 | +
|
52 | 108 | # |
53 | 109 | # bundled-php-extension-tests: |
54 | 110 | # runs-on: ${{ matrix.operating-system }} |
|
0 commit comments