Skip to content

Commit

Permalink
Update test-integration.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
MKodde committed Jan 17, 2024
1 parent 35bc9d2 commit 78ee79c
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 28 deletions.
45 changes: 18 additions & 27 deletions .github/workflows/test-integration.yml
Original file line number Diff line number Diff line change
@@ -1,35 +1,26 @@
name: test-integration
name: Run QA tests (static analysis, lint and unit tests)
on:
pull_request:
push:
branches: [ master, develop, feature/*, bugfix/* ]

jobs:
build:
run-qa-tests:
runs-on: ubuntu-latest
timeout-minutes: 5
defaults:
run:
working-directory: /var/www/html/
container:
image: ghcr.io/openconext/openconext-basecontainers/php72-apache2-node16-composer2:latest
volumes:
- .:/var/www/html

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 stepup-middleware bash -lc '
composer install
'
- name: Run test scripts
run: cd ci/docker && docker-compose exec -T stepup-middleware bash -lc ' composer test '
- name: Output log files on failure
if: failure()
run: |
tail -2000 /var/log/syslog
uses: actions/checkout@v2

- name: Composer install
run: composer install

- name: Run QA tests
run: composer check
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@
"cache:clear": "symfony-cmd",
"assets:install %PUBLIC_DIR%": "symfony-cmd"
},
"test": [
"check": [
"@phplint",
"@phpmd",
"@phpcs",
Expand Down

0 comments on commit 78ee79c

Please sign in to comment.