Skip to content

Commit

Permalink
Merge commit 'efce3e417b291cd145b561c5006b6216acd9988d' into develop
Browse files Browse the repository at this point in the history
* commit 'efce3e417b291cd145b561c5006b6216acd9988d':
  Run qa test directly on php82-apache2-node20-composer2:latest
  Update other dependencies to support PHP 8.2
  Update psr/log version constraint from 1 to 3
  • Loading branch information
pmeulen committed Mar 4, 2024
2 parents 23aec99 + efce3e4 commit f581bb5
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 30 deletions.
33 changes: 17 additions & 16 deletions .github/workflows/test-integration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,28 +4,29 @@ on:
push:
branches: [ master, develop ]
jobs:
build:
run-qa-tests:
runs-on: ubuntu-latest
defaults:
run:
working-directory: /var/www/html/
container:
image: ghcr.io/openconext/openconext-basecontainers/php82-apache2-node20-composer2:latest
volumes:
- .:/var/www/html
timeout-minutes: 5
steps:
- name: Checkout
uses: actions/checkout@v1
- name: Get Composer Cache Directory
id: composer-cache
run: echo "::set-output name=dir::$(composer config cache-files-dir)"
- uses: actions/cache@v2
with:
path: ${{ steps.composer-cache.outputs.dir }}
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }}
restore-keys: ${{ runner.os }}-composer-
- name: Init environment
run: cd ci/docker && docker-compose up -d
- name: Install dependencies
run: cd ci/docker && docker-compose exec -T tiqr-server-libphp bash -lc 'composer install'
uses: actions/checkout@v2

- name: Composer install
run: composer install

- name: Run test scripts (allowed to fail)
run: cd ci/docker && docker-compose exec -T tiqr-server-libphp bash -lc 'composer static-analysis'
run: composer static-analysis

- name: Run test scripts
run: cd ci/docker && docker-compose exec -T tiqr-server-libphp bash -lc 'composer phpunit && composer security-tests'
run: composer phpunit && composer security-tests

- name: Output log files on failure
if: failure()
run: tail -2000 /var/log/syslog
8 changes: 0 additions & 8 deletions ci/docker/docker-compose.yml

This file was deleted.

17 changes: 11 additions & 6 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,20 +7,25 @@
"ext-gd": "*",
"ext-curl": "*",
"ext-json": "*",
"php": ">=7.2",
"psr/log": "^1.1",
"psr/log": "^3.0",
"edamov/pushok": "^0.14.0",
"ext-openssl": "*",
"chillerlan/php-qrcode": "^3.4",
"google/apiclient": "^2.14",
"cache/filesystem-adapter": "^1"
},
"require-dev": {
"phpunit/phpunit": "^8.5",
"phpunit/phpunit": "^9.6",
"ext-pdo_sqlite": "*",
"mockery/mockery": "^1.3",
"phpmd/phpmd": "^2.12",
"squizlabs/php_codesniffer": "^2.9.2"
"mockery/mockery": "^1.6",
"phpmd/phpmd": "^2.15",
"squizlabs/php_codesniffer": "^3.7"
},
"config": {
"sort-packages": true,
"platform": {
"php": "8.2"
}
},
"scripts": {
"test": [
Expand Down

0 comments on commit f581bb5

Please sign in to comment.