ΠΠΎΠ±Π°Π²Π»ΡΠ΅Ρ Π΄ΠΎΠΊΡ Π΄Π»Ρ ΠΌΠ΅ΡΠΎΠ΄Π° ΠΌΠ°ΡΡΠΈΠ²Π° toSpliced() #8135
Workflow file for this run
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
name: PR Checks | |
on: | |
pull_request: | |
jobs: | |
editorconfig: | |
name: Π€ΠΎΡΠΌΠ°ΡΠΈΡΠΎΠ²Π°Π½ΠΈΠ΅ | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: 20 | |
- id: files | |
if: ${{ github.event_name == 'pull_request' }} | |
uses: Ana06/[email protected] | |
- name: Π Π°Π±ΠΎΡΠ°Π΅Ρ Π»ΠΈΠ½ΡΠ΅Ρ | |
run: | | |
npm install editorconfig-checker --global | |
config=.editorconfig | |
for changed_file in ${{ steps.files.outputs.added_modified }}; do | |
if [ $changed_file == $config ] | |
then | |
echo "ΠΡΠΎΠ²Π΅ΡΠΊΠ° Π΄Π»Ρ Π²ΡΠ΅Ρ ΡΠ°ΠΉΠ»ΠΎΠ²" | |
editorconfig-checker | |
break | |
else | |
echo "ΠΡΠΎΠ²Π΅ΡΠΊΠ° Π΄Π»Ρ ${changed_file}" | |
editorconfig-checker ${changed_file} | |
fi | |
done | |
frontmatter-checker: | |
name: ΠΠ΅ΡΠ° | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: 20 | |
- id: files | |
if: ${{ github.event_name == 'pull_request' }} | |
uses: Ana06/[email protected] | |
with: | |
filter: | | |
(css|html|js|tools|a11y)/**/index.md | |
!(pages|people)/**/index.md | |
- name: Π Π°Π±ΠΎΡΠ°Π΅Ρ Π»ΠΈΠ½ΡΠ΅Ρ | |
run: | | |
files='${{ steps.files.outputs.added_modified }}' | |
if ! [[ $files == "" ]]; then | |
echo "ΠΡΠΎΠ²Π΅ΡΠΊΠ° Π΄Π»Ρ ΡΠ°ΠΉΠ»ΠΎΠ² ΠΈΠ· PR" | |
npx yaml-cat --format json --output result.json $(echo $files | grep -o -E '(css|html|js|tools|a11y)/[a-z-]+/index.md') | |
node .github/scripts/frontmatter.js | |
else | |
echo "Π PR Π½Π΅Ρ ΡΠ°ΠΉΠ»ΠΎΠ² Π΄Π»Ρ ΠΏΡΠΎΠ²Π΅ΡΠΊΠΈ" | |
fi | |
link-checker: | |
name: Π‘ΡΡΠ»ΠΊΠΈ | |
needs: | |
- editorconfig | |
- frontmatter-checker | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- id: files | |
if: ${{ github.event_name == 'pull_request' }} | |
uses: Ana06/[email protected] | |
with: | |
filter: '*.md' | |
format: 'csv' | |
- name: ΠΡΠΎΠ²Π΅ΡΡΠ΅Ρ ΡΡΡΠ»ΠΊΠΈ | |
if: ${{ steps.files.outputs.added_modified != '' }} | |
uses: JustinBeckwith/linkinator-action@v1 | |
with: | |
paths: ${{ steps.files.outputs.added_modified }} | |
markdown: true | |
serverRoot: "/home/runner/work/content/content" | |
linksToSkip: "https?://(localhost|codepen.io)?(:[0-9]+)?/.*" |