2828 should-build-be : ${{ steps.export-changes.outputs.should-build-be }}
2929 should-build-fe : ${{ steps.export-changes.outputs.should-build-fe }}
3030 should-build-pkg : ${{ steps.export-changes.outputs.should-build-pkg }}
31- assets-json : ${{ steps.export-changes.outputs.assets-json }}
31+ assets-or-styles : ${{ steps.export-changes.outputs.assets-or-styles }}
3232
3333 steps :
3434 - name : Full checkout
4141 id : filter
4242 with :
4343 filters : |
44- json :
44+ assets-or-styles :
4545 - 'frontend/static/**/*'
46+ - '**/*.{scss,css}'
4647 be-src:
4748 - 'backend/**/*.{ts,js,json,lua,css,html}'
4849 - 'backend/package.json'
@@ -64,13 +65,13 @@ jobs:
6465 echo "should-build-pkg=${{ steps.filter.outputs.pkg-src }}" >> $GITHUB_OUTPUT
6566 echo "should-build-be=${{ steps.filter.outputs.be-src }}" >> $GITHUB_OUTPUT
6667 echo "should-build-fe=${{ steps.filter.outputs.fe-src }}" >> $GITHUB_OUTPUT
67- echo "assets-json =${{ steps.filter.outputs.json }}" >> $GITHUB_OUTPUT
68+ echo "assets-or-styles =${{ steps.filter.outputs.assets-or-styles }}" >> $GITHUB_OUTPUT
6869
6970 prime-cache :
7071 name : prime-cache
7172 runs-on : ubuntu-latest
7273 needs : [pre-ci]
73- if : needs.pre-ci.outputs.should-build-be == 'true' || needs.pre-ci.outputs.should-build-fe == 'true' || needs.pre-ci.outputs.should-build-pkg == 'true' || needs.pre-ci.outputs.assets-json == 'true' || contains(github.event.pull_request.labels.*.name, 'force-full-ci')
74+ if : needs.pre-ci.outputs.should-build-be == 'true' || needs.pre-ci.outputs.should-build-fe == 'true' || needs.pre-ci.outputs.should-build-pkg == 'true' || needs.pre-ci.outputs.assets-or-styles == 'true' || contains(github.event.pull_request.labels.*.name, 'force-full-ci')
7475 steps :
7576 - name : Checkout pnpm-lock
7677 uses : actions/checkout@v4
@@ -216,7 +217,7 @@ jobs:
216217 name : ci-assets
217218 needs : [pre-ci, prime-cache]
218219 runs-on : ubuntu-latest
219- if : needs.pre-ci.outputs.assets-json == 'true' || contains(github.event.pull_request.labels.*.name, 'force-full-ci')
220+ if : needs.pre-ci.outputs.assets-or-styles == 'true' || contains(github.event.pull_request.labels.*.name, 'force-full-ci')
220221 steps :
221222 - uses : actions/checkout@v4
222223 with :
@@ -228,6 +229,10 @@ jobs:
228229 id : filter
229230 with :
230231 filters : |
232+ styles:
233+ - '**/*.{scss,css}'
234+ json:
235+ - 'frontend/static/**/*.json'
231236 languages:
232237 - 'frontend/static/languages/**'
233238 quotes:
@@ -265,7 +270,12 @@ jobs:
265270 - name : Install dependencies
266271 run : pnpm install
267272
273+ - name : Lint styles
274+ if : steps.filter.outputs.styles == 'true'
275+ run : npm run lint-styles
276+
268277 - name : Lint JSON
278+ if : steps.filter.outputs.json == 'true'
269279 run : npm run lint-json-assets
270280
271281 - name : Validate language assets
0 commit comments