Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
33 changes: 23 additions & 10 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -42,21 +42,34 @@ jobs:
run: composer install
- name: Run static analysis
run: composer phpstan
tests:
name: Tests
runs-on: ubuntu-latest
strategy:
matrix:
version: ['8.0', '8.1', '8.2', '8.3', '8.4', '8.5']
tests:
name: Tests (${{ matrix.version }}, async-aws/dynamo-db ${{ matrix.dynamo_db_constraint }})
runs-on: ubuntu-latest
strategy:
matrix:
version: ['8.0', '8.1', '8.2', '8.3', '8.4', '8.5']
dynamo_db_constraint: ['default']
include:
- version: '8.2'
dynamo_db_constraint: '^3.0'
- version: '8.3'
dynamo_db_constraint: '^3.0'
- version: '8.4'
dynamo_db_constraint: '^3.0'
- version: '8.5'
dynamo_db_constraint: '^3.0'
steps:
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.version }}
- name: Checkout Code
uses: actions/checkout@v2
- name: Install Dependencies
run: composer install
- name: Checkout Code
uses: actions/checkout@v2
- name: Require async-aws/dynamo-db ${{ matrix.dynamo_db_constraint }}
if: matrix.dynamo_db_constraint != 'default'
run: composer require async-aws/dynamo-db:${{ matrix.dynamo_db_constraint }} --no-update
- name: Install Dependencies
run: composer install
- name: Run tests
run: composer phpunit
coverage:
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"php": "^8.0",
"rikudou/clock": "^1.0",
"psr/simple-cache": "^1.0",
"async-aws/dynamo-db": "^1.0",
"async-aws/dynamo-db": "^1.0 || ^2.0 || ^3.0",
"psr/clock": "^1.0"
},
"autoload": {
Expand Down