Skip to content
Closed
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
61 changes: 36 additions & 25 deletions .github/workflows/test-integration.yml
Original file line number Diff line number Diff line change
@@ -1,36 +1,47 @@
name: test-integration
on: [pull_request, push]
on:
pull_request:
push:
branches:
- main
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
defaults:
run:
working-directory: /var/www/html/
timeout-minutes: 30
container:
image: ghcr.io/openconext/openconext-basecontainers/php82-apache2-node20-composer2:latest
volumes:
- .:/var/www/html
steps:
- name: Checkout
uses: actions/checkout@v6
- name: Checkout
uses: actions/checkout@v6

- name: Checkout devconf
uses: actions/checkout@v6
with:
repository: OpenConext/OpenConext-devconf
ref: main
path: devconf
sparse-checkout: stepup
- name: Get Composer cache directory
id: composer-cache
run: echo "dir=$(composer config cache-files-dir)" >> $GITHUB_OUTPUT

- name: Check devconf
run: |
cd devconf && ls -al && ls -al stepup/
- name: Cache Composer dependencies
uses: actions/cache@v4
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 && ./init.sh
- name: Composer install
run: composer install

- name: Run CI tests
run: |
cd ci/docker && docker compose exec -T gateway bash -c '
composer check-ci
'
- name: Run QA tests
run: composer check-ci
env:
SYMFONY_DEPRECATIONS_HELPER: 999999

- name: Output logs on failure
if: failure()
run: |
cd ci/docker
docker compose logs
- name: Output logs on failure
if: failure()
run: |
cd ci/docker
docker compose logs
Loading