Skip to content

Commit 9ac656f

Browse files
committed
chore: remove redundant linting and database setup tasks from CI and Taskfile
1 parent e93b53a commit 9ac656f

File tree

2 files changed

+1
-591
lines changed

2 files changed

+1
-591
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 70 deletions
Original file line numberDiff line numberDiff line change
@@ -89,76 +89,7 @@ jobs:
8989
# === LINTING PHASE ===
9090
- name: Frontend linting
9191
run: |
92-
# Run markdown linting with warning on failure
93-
npm run lint:markdown || echo "::warning::Markdown linting issues found"
94-
95-
# Run SCSS linting (will auto-fix issues)
96-
npm run lint:stylelint:fix
97-
98-
# Check if there are any remaining unfixed issues
99-
if ! npm run lint:stylelint; then
100-
echo "::warning::Some SCSS issues could not be auto-fixed"
101-
fi
102-
103-
- name: Setup PHP tools and permissions
104-
run: |
105-
task symfony:download-phar
106-
task symfony:ls
107-
sudo chown -R $USER:$USER ./apps
108-
sudo chmod -R 755 ./apps
109-
task symfony:about
110-
111-
- name: PHP linting suite
112-
id: php-linting
113-
continue-on-error: true
114-
run: |
115-
LINT_EXIT_CODE=0
116-
117-
echo "::group::PHP Code Sniffer"
118-
task lint:phpcs:error || LINT_EXIT_CODE=1
119-
echo "::endgroup::"
120-
121-
echo "::group::PHP Mess Detector"
122-
task lint:phpmd || LINT_EXIT_CODE=1
123-
echo "::endgroup::"
124-
125-
echo "::group::PHP Magic Number Detector"
126-
task lint:phpmnd || LINT_EXIT_CODE=1
127-
echo "::endgroup::"
128-
129-
echo "::group::Twig Linting"
130-
task lint:twig || LINT_EXIT_CODE=1
131-
echo "::endgroup::"
132-
133-
echo "::group::YAML Linting"
134-
task lint:yaml || LINT_EXIT_CODE=1
135-
echo "::endgroup::"
136-
137-
echo "::group::PHPStan Analysis"
138-
task phpstan:0 || LINT_EXIT_CODE=1
139-
echo "::endgroup::"
140-
141-
if [ $LINT_EXIT_CODE -ne 0 ]; then
142-
echo "::warning::Some PHP linting checks failed, but continuing with the build"
143-
fi
144-
145-
exit $LINT_EXIT_CODE
146-
# === TESTING PHASE ===
147-
- name: Prepare application
148-
run: |
149-
sudo chown -R $USER:$USER ./apps/public
150-
sudo chmod -R 755 ./apps/public
151-
task symfony:assets
152-
153-
- name: Database setup
154-
run: |
155-
task doctrine:migrate
156-
task doctrine:schema:update
157-
task doctrine:schema:validate
158-
task doctrine:fixtures
159-
160-
- name: Cleanup and test preparation
161-
run: task symfony:delete-oldfiles
92+
npm run lint:markdown
16293
16394
- name: Run Cypress tests
16495
uses: cypress-io/github-action@v6

0 commit comments

Comments
 (0)