-
-
Notifications
You must be signed in to change notification settings - Fork 859
feat: lint the whole project using Super-Linter #544
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
dunglas
wants to merge
9
commits into
main
Choose a base branch
from
feat/super-linter
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
9 commits
Select commit
Hold shift + click to select a range
69fd710
feat: lint the project with Super Linter
dunglas 7f0a7b1
fixes
dunglas 9ea6e24
fixes
dunglas 92c8ef0
fixes
dunglas 44cd2b1
fix
dunglas 11b10ad
fix
dunglas 0a51cb0
Update docs/options.md
dunglas 38e2aaf
fix
dunglas 3607a49
Update docs/tls.md
dunglas File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
--- | ||
rules: | ||
unpinned-uses: | ||
config: | ||
policies: | ||
"*": ref-pin |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
--- | ||
name: CI | ||
|
||
on: | ||
|
@@ -7,6 +8,9 @@ on: | |
pull_request: ~ | ||
workflow_dispatch: ~ | ||
|
||
permissions: | ||
contents: read | ||
|
||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }} | ||
cancel-in-progress: true | ||
|
@@ -16,14 +20,13 @@ jobs: | |
name: Tests | ||
runs-on: ubuntu-latest | ||
steps: | ||
- | ||
name: Checkout | ||
- name: Checkout code | ||
uses: actions/checkout@v5 | ||
- | ||
name: Set up Docker Buildx | ||
with: | ||
persist-credentials: false | ||
- name: Set up Docker Buildx | ||
uses: docker/setup-buildx-action@v3 | ||
- | ||
name: Build Docker images | ||
- name: Build Docker images | ||
uses: docker/bake-action@v6 | ||
with: | ||
pull: true | ||
|
@@ -35,42 +38,43 @@ jobs: | |
*.cache-from=type=gha,scope=${{github.ref}} | ||
*.cache-from=type=gha,scope=refs/heads/main | ||
*.cache-to=type=gha,scope=${{github.ref}},mode=max | ||
- | ||
name: Start services | ||
- name: Start services | ||
run: docker compose up --wait --no-build | ||
- | ||
name: Check HTTP reachability | ||
- name: Check HTTP reachability | ||
run: curl -v --fail-with-body http://localhost | ||
- | ||
name: Check HTTPS reachability | ||
- name: Check HTTPS reachability | ||
if: false # Remove this line when the homepage is configured, or change the path to check | ||
run: curl -v --insecure --fail-with-body https://localhost | ||
- | ||
name: Check Mercure reachability | ||
- name: Check Mercure reachability | ||
run: curl -vI --insecure --fail-with-body https://localhost/.well-known/mercure?topic=test | ||
- | ||
name: Create test database | ||
- name: Create test database | ||
if: false # Remove this line if Doctrine ORM is installed | ||
run: docker compose exec -T php bin/console -e test doctrine:database:create | ||
- | ||
name: Run migrations | ||
- name: Run migrations | ||
if: false # Remove this line if Doctrine Migrations is installed | ||
run: docker compose exec -T php bin/console -e test doctrine:migrations:migrate --no-interaction | ||
- | ||
name: Run PHPUnit | ||
- name: Run PHPUnit | ||
if: false # Remove this line if PHPUnit is installed | ||
run: docker compose exec -T php bin/phpunit | ||
- | ||
name: Doctrine Schema Validator | ||
- name: Doctrine Schema Validator | ||
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 | ||
permissions: | ||
contents: read | ||
packages: read | ||
statuses: write | ||
steps: | ||
- | ||
name: Checkout | ||
- name: Checkout | ||
uses: actions/checkout@v5 | ||
- | ||
name: Lint Dockerfile | ||
uses: hadolint/[email protected] | ||
with: | ||
fetch-depth: 0 | ||
persist-credentials: false | ||
- name: Lint Code Base | ||
uses: super-linter/super-linter/slim@v8 | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
VALIDATE_CHECKOV: false | ||
VALIDATE_TRIVY: false |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
--- | ||
# Production environment override | ||
services: | ||
php: | ||
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
--- | ||
services: | ||
php: | ||
image: ${IMAGES_PREFIX:-}app-php | ||
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,25 @@ | ||
# Support for Extra Services | ||
|
||
Symfony Docker is extensible. When you install a compatible Composer package using Symfony Flex, | ||
the recipe will automatically modify the `Dockerfile` and `compose.yaml` to fulfill the requirements of this package. | ||
Symfony Docker is extensible. | ||
When you install a compatible Composer package using Symfony Flex, | ||
the recipe will automatically modify the `Dockerfile` and `compose.yaml` files | ||
to fulfill the requirements of this package. | ||
|
||
The currently supported packages are: | ||
|
||
* `symfony/orm-pack`: install a PostgreSQL service | ||
* `symfony/mercure-bundle`: use the Mercure.rocks module shipped with Caddy | ||
* `symfony/panther`: install chromium and these drivers | ||
* `symfony/mailer`: install a Mailpit service | ||
* `blackfireio/blackfire-symfony-meta`: install a Blackfire service | ||
- `symfony/orm-pack`: install a PostgreSQL service | ||
- `symfony/mercure-bundle`: use the Mercure.rocks module shipped with Caddy | ||
- `symfony/panther`: install chromium and these drivers | ||
- `symfony/mailer`: install a Mailpit service | ||
- `blackfireio/blackfire-symfony-meta`: install a Blackfire service | ||
|
||
> [!NOTE] | ||
> | ||
> If a recipe modifies the Dockerfile, the container needs to be rebuilt. | ||
|
||
<!-- --> | ||
|
||
> [!WARNING] | ||
> We recommend that you use the `composer require` command inside the container in development mode so that recipes can be applied correctly | ||
> | ||
> We recommend that you use the `composer require` command inside the container | ||
> in development mode so that recipes can be applied correctly |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.