From 17c075f1dc7260e5b7a8f07e4eddeaf14bbba837 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?K=C3=A9vin=20Dunglas?= Date: Mon, 22 Apr 2024 13:16:34 +0200 Subject: [PATCH] feat: lint the project with Super Linter --- .github/workflows/ci.yml | 11 ++++++++--- compose.override.yaml | 1 + compose.prod.yaml | 1 + compose.yaml | 1 + 4 files changed, 11 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 7d950ba3..6777434f 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -1,3 +1,4 @@ +--- name: CI on: @@ -62,12 +63,16 @@ jobs: if: false # Remove this line if Doctrine ORM is installed run: docker compose exec -T php bin/console -e test doctrine:schema:validate lint: - name: Docker Lint + name: Lint runs-on: ubuntu-latest steps: - name: Checkout uses: actions/checkout@v4 + with: + fetch-depth: 0 - - name: Lint Dockerfile - uses: hadolint/hadolint-action@v3.1.0 + name: Lint Code Base + uses: super-linter/super-linter@v6 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/compose.override.yaml b/compose.override.yaml index 5f141b1f..4d8a507e 100644 --- a/compose.override.yaml +++ b/compose.override.yaml @@ -1,3 +1,4 @@ +--- # Development environment override services: php: diff --git a/compose.prod.yaml b/compose.prod.yaml index f0db05da..a067ed3e 100644 --- a/compose.prod.yaml +++ b/compose.prod.yaml @@ -1,3 +1,4 @@ +--- # Production environment override services: php: diff --git a/compose.yaml b/compose.yaml index cbb4f512..2aa12863 100644 --- a/compose.yaml +++ b/compose.yaml @@ -1,3 +1,4 @@ +--- services: php: image: ${IMAGES_PREFIX:-}app-php