Skip to content

Commit 7906529

Browse files
committed
650: add freebsd pipeline to CI
1 parent 467636f commit 7906529

1 file changed

Lines changed: 56 additions & 0 deletions

File tree

.github/workflows/continuous-integration.yml

Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,62 @@ jobs:
4949
# run: sudo vendor/bin/phpunit
5050
# env:
5151
# 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+
52108
#
53109
# bundled-php-extension-tests:
54110
# runs-on: ${{ matrix.operating-system }}

0 commit comments

Comments
 (0)