fix config #31
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Run tests locally | |
on: [push, pull_request] | |
jobs: | |
tests: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
php-versions: ['8.2'] | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-go@v4 | |
with: | |
go-version: '1.20' | |
- uses: shivammathur/setup-php@v2 | |
with: | |
php-version: ${{ matrix.php-versions }} | |
ini-file: development | |
#ini-values: output_buffering=Off | |
coverage: none | |
env: | |
phpts: ts | |
debug: true | |
- name: Update php.ini | |
run: | | |
rm -Rf /etc/php/${{ matrix.php-versions }}/embed/conf.d/* | |
echo 'output_buffering=Off' > /etc/php/${{ matrix.php-versions }}/embed/php.ini | |
- name: Set include flags | |
run: echo "CGO_CFLAGS=$(php-config --includes)" >> "$GITHUB_ENV" | |
#- name: Setup tmate session | |
# uses: mxschmitt/action-tmate@v3 | |
# with: | |
# limit-access-to-actor: true | |
- name: Run library tests | |
run: go test -race -v ./... | |
- name: Run Caddy module tests | |
working-directory: caddy/ | |
run: go test -race -v ./... |