Skip to content

Commit

Permalink
Tests with PHP 7.4, 8.0, and 8.1
Browse files Browse the repository at this point in the history
  • Loading branch information
lyrixx committed Jun 15, 2022
1 parent 0b4f180 commit 00f121f
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 1 deletion.
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

0 comments on commit 00f121f

Please sign in to comment.