|
89 | 89 | # === LINTING PHASE === |
90 | 90 | - name: Frontend linting |
91 | 91 | 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 |
162 | 93 | |
163 | 94 | - name: Run Cypress tests |
164 | 95 | uses: cypress-io/github-action@v6 |
|
0 commit comments