Skip to content

Refactor test suite #60

Refactor test suite

Refactor test suite #60

Workflow file for this run

name: Run e2e test
on:
workflow_dispatch:
pull_request:
push:
branches:
- "*.*.x"
- "master"
jobs:
run:
name: "Run e2e test"
runs-on: ${{ matrix.operating-system }}
strategy:
matrix:
dependencies:
- "highest"
- "lowest"
- "locked"
php-version:
- "8.1"
operating-system:
- "ubuntu-latest"
steps:
- name: "Checkout"
uses: "actions/[email protected]"
- name: "Install PHP"
uses: "shivammathur/[email protected]"
with:
coverage: "none"
php-version: "${{ matrix.php-version }}"
ini-values: memory_limit=-1
- name: "Install dependencies"
uses: "ramsey/[email protected]"
with:
dependency-versions: "${{ matrix.dependencies }}"
- name: "Init COMPOSER_HOME"
uses: "ramsey/[email protected]"
with:
working-directory: "tests/fixtures/composer_home"
- name: "Install e2e dependencies"
uses: "ramsey/[email protected]"
with:
working-directory: "tests/fixtures/e2e"
- name: Test `composer audit` output
# See https://github.com/symfony/symfony/issues/53460 why --no-ansi was added.
run: tests/fixtures/e2e/test.php "$(DDQG_COMPOSER_AUDIT_TEST_ENV=1 COMPOSER_HOME=$PWD/tests/fixtures/composer_home ./vendor/bin/composer --no-ansi -d tests/fixtures/e2e audit --format=json)"