-
Notifications
You must be signed in to change notification settings - Fork 3.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
CI: run Stylelint on all files, not just changed ones (#9042)
- Loading branch information
Showing
8 changed files
with
12 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters