Add a test to set the max age and add some documentation #285
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: tests | |
on: [push, pull_request] | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
env: | |
NATS_CLIENT_LOG: 1 | |
NATS_TEST_LOG: 1 | |
strategy: | |
matrix: | |
php: ["8.1", "8.2", "8.3"] | |
verbose: ['0', '1'] | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: shivammathur/setup-php@v2 | |
with: | |
php-version: ${{ matrix.php }} | |
NATS_CLIENT_VERBOSE: ${{ matrix.verbose }} | |
- uses: php-actions/composer@v6 | |
- run: docker compose up -d | |
working-directory: docker | |
- run: vendor/bin/phpunit --testsuite Tests | |
- name: Archive code coverage results | |
if: matrix.php == '8.1' | |
uses: actions/upload-artifact@v3 | |
with: | |
name: code-coverage-report | |
path: ./coverage |