Skip to content

Commit

Permalink
Update CI workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
rybakit committed Jun 10, 2023
1 parent 4e36dbe commit bdf9d8f
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 12 deletions.
8 changes: 5 additions & 3 deletions .github/workflows/qa.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ on:
jobs:
tests:
env:
TNT_IMAGE: tarantool/tarantool:2.10
PHP_IMAGE: php:8.1-cli
TNT_IMAGE: tarantool/tarantool:2.11
PHP_IMAGE: php:8.2-cli
strategy:
matrix:
operating-system: [ubuntu-latest]
Expand All @@ -23,6 +23,7 @@ jobs:
COVERAGE_FILE: coverage.clover

- PHP_IMAGE: php:8.0-cli
- PHP_IMAGE: php:8.1-cli

- TNT_IMAGE: tarantool/tarantool:1.7
- TNT_IMAGE: tarantool/tarantool:1.9
Expand All @@ -34,11 +35,12 @@ jobs:
- TNT_IMAGE: tarantool/tarantool:2.6
- TNT_IMAGE: tarantool/tarantool:2.7
- TNT_IMAGE: tarantool/tarantool:2.8
- TNT_IMAGE: tarantool/tarantool:2.10

runs-on: ${{ matrix.operating-system }}
steps:
- name: Checkout
uses: actions/checkout@v2
uses: actions/checkout@v3

- name: Build docker image
env: ${{ matrix.env }}
Expand Down
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
The MIT License (MIT)

Copyright (c) 2015-2022 Eugene Leonovich
Copyright (c) 2015-2023 Eugene Leonovich

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
2 changes: 1 addition & 1 deletion dockerfile.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/usr/bin/env bash

if [[ -z "$PHP_IMAGE" ]] ; then
PHP_IMAGE='php:8.1-cli'
PHP_IMAGE='php:8.2-cli'
fi

if [[ -z "$TNT_LISTEN_URI" ]]; then
Expand Down
10 changes: 3 additions & 7 deletions tests/PhpUnitCompat.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,8 @@ trait PhpUnitCompat
{
public function expectExceptionMessageMatches(string $regularExpression) : void
{
if (\is_callable('parent::expectExceptionMessageMatches')) {
parent::expectExceptionMessageMatches($regularExpression);

return;
}

parent::expectExceptionMessageRegExp($regularExpression);
\is_callable(parent::class.'::expectExceptionMessageMatches')
? parent::expectExceptionMessageMatches(...func_get_args())
: parent::expectExceptionMessageRegExp(...func_get_args());
}
}

0 comments on commit bdf9d8f

Please sign in to comment.