From 5827e5060ecd294796f956a359bd8a7bc25325a5 Mon Sep 17 00:00:00 2001 From: Sebastian Bergmann Date: Wed, 29 Nov 2023 09:13:57 +0100 Subject: [PATCH 1/3] Ensure that dependencies are up-to-date --- .github/workflows/ci.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 817537248f8..e7484864e02 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -34,7 +34,10 @@ jobs: run: ./tools/composer validate --strict composer.json - name: Ensure that dependencies can be installed - run: ./tools/composer install --dry-run + run: ./tools/composer install + + - name: Ensure that dependencies are up-to-date + run: ./tools/composer show --minor-only --latest --direct --outdated --strict coding-guidelines: name: Coding Guidelines From 9242ddb9cc6cebe3915df7e05484206a38f273ec Mon Sep 17 00:00:00 2001 From: Sebastian Bergmann Date: Wed, 29 Nov 2023 09:14:20 +0100 Subject: [PATCH 2/3] Let type-checker and unit-tests jobs depend on dependency-validation job --- .github/workflows/ci.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index e7484864e02..52bbe33d384 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -62,6 +62,9 @@ jobs: type-checker: name: Type Checker + needs: + - dependency-validation + runs-on: ubuntu-latest steps: @@ -88,6 +91,9 @@ jobs: unit-tests: name: Unit Tests + needs: + - dependency-validation + runs-on: ${{ matrix.os }} env: From b1c3d3d22124d39ca6797c23e99abb3be31af651 Mon Sep 17 00:00:00 2001 From: Sebastian Bergmann Date: Wed, 29 Nov 2023 09:17:52 +0100 Subject: [PATCH 3/3] Use --no-ansi CLI option --- .github/workflows/ci.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 52bbe33d384..2f53d698427 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -31,13 +31,13 @@ jobs: tools: none - name: Ensure that composer.json is valid - run: ./tools/composer validate --strict composer.json + run: ./tools/composer validate --no-ansi --strict composer.json - name: Ensure that dependencies can be installed - run: ./tools/composer install + run: ./tools/composer --no-ansi install - name: Ensure that dependencies are up-to-date - run: ./tools/composer show --minor-only --latest --direct --outdated --strict + run: ./tools/composer show --no-ansi --minor-only --latest --direct --outdated --strict coding-guidelines: name: Coding Guidelines