Skip to content
This repository was archived by the owner on Apr 11, 2025. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
name: Lint

on:
pull_request:
paths:
- '**'
- '!docs/**'
- '!**/*.md'
branches:
- master
jobs:
build-php:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- run: npm run lint
2 changes: 1 addition & 1 deletion compose/base/2.4.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ services:
memory: 2G
mailhog:
extends:
file: ./compose/mailhog/1.0.yaml
file: ./compose/mailhog/1.0.yml
service: mailhog
networks:
- backend
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
3 changes: 2 additions & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
version : '3'
---
version: '3'

services: {}
2 changes: 1 addition & 1 deletion docs/stories/debugging/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ This tutorial will help you set up a debugger for your local Mage2docker environ

## Usage

1. To use xdebug with Mage2docker, simply open your `.env` and append `:compose/php/7.3/7.3-xdebug.yaml` to your `COMPOSE_FILE` key.
1. To use xdebug with Mage2docker, simply open your `.env` and append `:compose/php/7.3/7.3-xdebug.yml` to your `COMPOSE_FILE` key.

> Replace the php version with the supported php version of your choice.

Expand Down
2 changes: 1 addition & 1 deletion docs/stories/docker/mailhog-service.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
# Mailhog service
For development environments, the service mailhog helps to test emails locally, it's declared in the [docker-compose](../../../compose/mailhog/1.0.yaml) and exports two ports, the first one is 1025 that it's used for smtp server, and the 8025 is a web interface.
For development environments, the service mailhog helps to test emails locally, it's declared in the [docker-compose](../../../compose/mailhog/1.0.yml) and exports two ports, the first one is 1025 that it's used for smtp server, and the 8025 is a web interface.
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@
},
"private": true,
"scripts": {
"release": "standard-version --sign"
"release": "standard-version --sign",
"lint": "./tools/linter/file-name.sh"
},
"repository": {
"type": "git",
Expand Down
15 changes: 15 additions & 0 deletions tools/linter/file-name.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
#!/bin/bash
set -e;

paths=`git ls-files | grep .yaml || true`;
count=`echo $paths | wc -w`;

if [ "$count" != "0" ]; then
echo "$count file(s) discovered";
for item in $paths; do
echo $item;
done;
exit 1;
else
exit 0;
fi