Skip to content

Commit

Permalink
CI: run Stylelint on all files, not just changed ones (#9042)
Browse files Browse the repository at this point in the history
  • Loading branch information
SpecLad authored Feb 3, 2025
1 parent 59fe97f commit 908a47d
Show file tree
Hide file tree
Showing 8 changed files with 12 additions and 24 deletions.
23 changes: 6 additions & 17 deletions .github/workflows/stylelint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,23 +8,12 @@ jobs:
- uses: actions/setup-node@v4
with:
node-version: '16.x'
- id: files
uses: tj-actions/[email protected]
with:
files: |
**/*.css
**/*.scss

- name: Run checks
- name: Install dependencies
run: |
CHANGED_FILES="${{steps.files.outputs.all_changed_files}}"
if [[ ! -z $CHANGED_FILES ]]; then
yarn install --frozen-lockfile
yarn install --frozen-lockfile
echo "StyleLint version: "$(npx stylelint --version)
echo "The files will be checked: "$(echo $CHANGED_FILES)
npx stylelint $CHANGED_FILES
else
echo "No files with the \"css|scss\" extension found"
fi
- name: Run checks
run: |
echo "StyleLint version: "$(yarn run -s stylelint --version)
yarn run stylelint '**/*.css' '**/*.scss'
2 changes: 1 addition & 1 deletion cvat-ui/src/components/export-backup/styles.scss
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
//
// SPDX-License-Identifier: MIT

@import '../../base.scss';
@import '../../base';

.cvat-modal-export-option-item > .ant-select-item-option-content,
.cvat-modal-export-select .ant-select-selection-item {
Expand Down
2 changes: 1 addition & 1 deletion cvat-ui/src/components/export-dataset/styles.scss
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
//
// SPDX-License-Identifier: MIT

@import '../../base.scss';
@import '../../base';

.cvat-modal-export-option-item > .ant-select-item-option-content,
.cvat-modal-export-select .ant-select-selection-item {
Expand Down
2 changes: 1 addition & 1 deletion cvat-ui/src/components/global-error-boundary/styles.scss
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
//
// SPDX-License-Identifier: MIT

@import '../../base.scss';
@import '../../base';

.cvat-global-boundary {
.ant-result > .ant-result-content {
Expand Down
2 changes: 1 addition & 1 deletion cvat-ui/src/components/layout-grid/styles.scss
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
//
// SPDX-License-Identifier: MIT

@import './../../base.scss';
@import './../../base';

.grid {
display: grid;
Expand Down
2 changes: 1 addition & 1 deletion cvat-ui/src/components/storage/styles.scss
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
//
// SPDX-License-Identifier: MIT

@import '../../base.scss';
@import '../../base';

.cvat-question-circle-filled-icon {
font-size: $grid-unit-size * 14;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
//
// SPDX-License-Identifier: MIT

@import '../../base.scss';
@import '../../base';

.cvat-update-cloud-storage-form-wrapper {
text-align: center;
Expand Down
1 change: 0 additions & 1 deletion site/assets/scss/_variables_project.scss
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,4 @@ Add styles or override variables from the theme here.
$enable-gradients: false;
$enable-rounded: true;
$enable-shadows: true;

$info: #f1f1f1;

0 comments on commit 908a47d

Please sign in to comment.