Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tests with PHP 7.4, 8.0, and 8.1 #184

Merged
merged 1 commit into from
Jun 15, 2022
Merged
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
10 changes: 10 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ name: CI

jobs:
check-python-cs:
name: Check Python CS
runs-on: ubuntu-latest
steps:
-
Expand All @@ -24,6 +25,11 @@ jobs:
-
run: 'pycodestyle --ignore=E501,W605,E722 invoke.py tasks.py'
ci:
name: Test with PHP ${{ matrix.php-version }}
strategy:
fail-fast: false
matrix:
php-version: ['7.4', '8.0', '8.1']
runs-on: ubuntu-latest
steps:
-
Expand All @@ -38,6 +44,9 @@ jobs:
-
run: 'pip3 install pipenv'

- name: Set PHP version
run: sed -i "s/^php_version = .*/php_version = '${{ matrix.php-version }}'/" invoke.py

# Install the stack and run the tests

-
Expand All @@ -50,6 +59,7 @@ jobs:
set -e
set -o pipefail
curl --fail --insecure --silent -H "Host: app.test" https://127.0.0.1 | grep "Hello world"
curl --fail --insecure --silent -H "Host: app.test" https://127.0.0.1 | grep "${{ matrix.php-version }}"
-
name: 'Test communication with DB'
run: |
Expand Down
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
* Add documentation cookbook for using pg_activity
* Forward CI env vars in Docker containers
* Run the npm/yarn/webpack commands on the host for all mac users (even the ones not using Dinghy)
* Tests with PHP 7.4, 8.0, and 8.1

## 3.7.0 (2022-05-24)

Expand Down
2 changes: 1 addition & 1 deletion infrastructure/docker/services/builder/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ RUN adduser app sudo \
&& phpenmod app-builder

# Composer
COPY --from=composer/composer:2.3.5 /usr/bin/composer /usr/bin/composer
COPY --from=composer/composer:2.3.7 /usr/bin/composer /usr/bin/composer
RUN mkdir -p "/home/app/.composer/cache" \
&& chown app: /home/app/.composer -R

Expand Down