Skip to content

ДобавляСт Π΄ΠΎΠΊΡƒ для ΠΌΠ΅Ρ‚ΠΎΠ΄Π° массива toSpliced() #8135

ДобавляСт Π΄ΠΎΠΊΡƒ для ΠΌΠ΅Ρ‚ΠΎΠ΄Π° массива toSpliced()

ДобавляСт Π΄ΠΎΠΊΡƒ для ΠΌΠ΅Ρ‚ΠΎΠ΄Π° массива toSpliced() #8135

Workflow file for this run

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]+)?/.*"