From abb5de0986a79425522db635dc2d5271af8ffaf4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gabriel=20Ostroluck=C3=BD?= Date: Sun, 29 Sep 2024 10:50:59 +0200 Subject: [PATCH] Add CI docs lint job --- .github/workflows/coding-standards.yml | 2 +- .github/workflows/composer-lint.yml | 2 +- .github/workflows/continuous-integration.yml | 4 ++-- .github/workflows/documentation.yml | 20 ++++++++++++++++++++ .github/workflows/static-analysis.yml | 2 +- .github/workflows/test-dev-stability.yml | 2 +- 6 files changed, 26 insertions(+), 6 deletions(-) create mode 100644 .github/workflows/documentation.yml diff --git a/.github/workflows/coding-standards.yml b/.github/workflows/coding-standards.yml index 5c640bca..fcedea1f 100644 --- a/.github/workflows/coding-standards.yml +++ b/.github/workflows/coding-standards.yml @@ -12,6 +12,6 @@ on: jobs: coding-standards: name: "Coding Standards" - uses: "doctrine/.github/.github/workflows/coding-standards.yml@5.0.1" + uses: "doctrine/.github/.github/workflows/coding-standards.yml@5.1.0" with: composer-options: "--prefer-dist --prefer-stable" diff --git a/.github/workflows/composer-lint.yml b/.github/workflows/composer-lint.yml index aff94ca5..ce49a02a 100644 --- a/.github/workflows/composer-lint.yml +++ b/.github/workflows/composer-lint.yml @@ -15,4 +15,4 @@ on: jobs: composer-lint: name: "Composer Lint" - uses: "doctrine/.github/.github/workflows/composer-lint.yml@5.0.1" + uses: "doctrine/.github/.github/workflows/composer-lint.yml@5.1.0" diff --git a/.github/workflows/continuous-integration.yml b/.github/workflows/continuous-integration.yml index 900daa2c..ec83c7c8 100644 --- a/.github/workflows/continuous-integration.yml +++ b/.github/workflows/continuous-integration.yml @@ -12,7 +12,7 @@ on: jobs: phpunit: name: "PHPUnit" - runs-on: "ubuntu-22.04" + runs-on: "ubuntu-latest" env: SYMFONY_REQUIRE: ${{matrix.symfony-require}} SYMFONY_DEPRECATIONS_HELPER: weak @@ -110,7 +110,7 @@ jobs: upload_coverage: name: "Upload coverage to Codecov" - runs-on: "ubuntu-22.04" + runs-on: "ubuntu-latest" needs: - "phpunit" diff --git a/.github/workflows/documentation.yml b/.github/workflows/documentation.yml new file mode 100644 index 00000000..0518880f --- /dev/null +++ b/.github/workflows/documentation.yml @@ -0,0 +1,20 @@ +name: "Documentation" + +on: + pull_request: + branches: + - "*.x" + paths: + - ".github/workflows/documentation.yml" + - "docs/**" + push: + branches: + - "*.x" + paths: + - ".github/workflows/documentation.yml" + - "docs/**" + +jobs: + documentation: + name: "Documentation" + uses: "doctrine/.github/.github/workflows/documentation.yml@5.1.0" \ No newline at end of file diff --git a/.github/workflows/static-analysis.yml b/.github/workflows/static-analysis.yml index 4020dd09..fde93c2f 100644 --- a/.github/workflows/static-analysis.yml +++ b/.github/workflows/static-analysis.yml @@ -12,7 +12,7 @@ on: jobs: static-analysis-psalm: name: "Static Analysis with Psalm" - runs-on: "ubuntu-22.04" + runs-on: "ubuntu-latest" steps: - name: "Checkout code" diff --git a/.github/workflows/test-dev-stability.yml b/.github/workflows/test-dev-stability.yml index 637dd5ad..89a7e73d 100644 --- a/.github/workflows/test-dev-stability.yml +++ b/.github/workflows/test-dev-stability.yml @@ -8,7 +8,7 @@ on: jobs: phpunit: name: "PHPUnit" - runs-on: "ubuntu-22.04" + runs-on: "ubuntu-latest" env: SYMFONY_REQUIRE: ${{matrix.symfony-require}}