-
Notifications
You must be signed in to change notification settings - Fork 11
Issue #46 Add code formatter and CI/CD linter #36
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
Changes from all commits
c5715eb
e7093f4
3a4bacf
b296cff
cb3d1d4
39567e6
d719f50
23a3a4e
5600a44
966ccd9
44c3db7
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -7,14 +7,17 @@ jobs: | |
| runs-on: ubuntu-latest | ||
|
|
||
| steps: | ||
| - name: Checkout repository | ||
| uses: actions/checkout@v3 | ||
| - name: Check out the repo | ||
| uses: actions/checkout@v2 | ||
| with: | ||
| fetch-depth: 2 | ||
|
|
||
| - name: Configure Git Safe Directory | ||
| run: git config --global --add safe.directory /app | ||
|
|
||
|
Comment on lines
+15
to
+17
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
The safe-directory warning you are trying to silence originates inside the Docker container, so this step doesn’t help. Two options:
If the warning isn’t fatal, consider removing the step altogether. 🤖 Prompt for AI Agents |
||
| - run: git checkout HEAD^2 | ||
|
|
||
| - name: Run Linter | ||
| run: | | ||
| docker run --rm -v $PWD:/app composer sh -c \ | ||
| "composer install --profile --ignore-platform-reqs && composer lint" | ||
| "composer install --profile --ignore-platform-reqs && composer lint" | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,6 @@ | ||
| { | ||
| "preset": "psr12", | ||
| "exclude": [ | ||
| "tests/resources" | ||
| ] | ||
| } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
actions/checkout@v2is deprecated – switch back tov4(or at leastv3).The action-lint warning is correct; v2 runs on the old Node 12 runtime and will stop receiving updates. Unless there is a hard blocker, stay on the maintained major:
📝 Committable suggestion
🧰 Tools
🪛 actionlint (1.7.7)
11-11: the runner of "actions/checkout@v2" action is too old to run on GitHub Actions. update the action's version to fix this issue
(action)
🤖 Prompt for AI Agents