Skip to content
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
50 changes: 50 additions & 0 deletions .github/workflows/integration-tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
name: Integration Tests

on:
push:
branches: [master]
pull_request:
branches: [master]

jobs:
integration-test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: '8.1'
tools: composer

- name: Setup Python
uses: actions/setup-python@v5
with:
python-version: '3.12'

- name: Install reporters-validator
run: pip install git+https://github.com/qase-tms/reporters-validator.git

- name: Download report schemas
run: git clone --depth 1 https://github.com/qase-tms/specs.git /tmp/specs

- name: Install example dependencies
working-directory: examples
run: composer install --no-interaction --prefer-dist

- name: Build Codeception actors
working-directory: examples
run: php vendor/bin/codecept build

- name: Validate Codeception reporter
working-directory: examples
run: |
QASE_MODE=report \
QASE_REPORT_CONNECTION_PATH=${{ github.workspace }}/build/report \
php vendor/bin/codecept run --no-colors || true

reporters-validator validate \
--report-dir ${{ github.workspace }}/build/report \
--expected ${{ github.workspace }}/expected/codeception-examples.yaml \
--schema-dir /tmp/specs/report/schemas
13 changes: 13 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,17 @@ vendor
.phpunit.cache/
/coverage/

# build artifacts
build/

# codeception output
tests/_output/
examples/tests/_output/

# generated actor actions
examples/tests/Support/_generated/

# composer lock in examples (generated from path repo)
examples/composer.lock

.idea
Loading
Loading