Чинит страницу участника (#1310) #1798
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: W3C Validator | |
on: | |
pull_request: | |
push: | |
branches: | |
- main | |
jobs: | |
validate: | |
runs-on: ubuntu-latest | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
PATH_TO_CONTENT: ./content | |
steps: | |
- name: Загрузка платформы | |
uses: actions/checkout@v4 | |
- name: Загрузка контента | |
uses: actions/checkout@v4 | |
with: | |
repository: doka-guide/content | |
path: content | |
- name: Загрузка кеша | |
uses: actions/checkout@v2 | |
with: | |
repository: doka-guide/cache | |
path: cache | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: 20 | |
- uses: actions/setup-java@v4 | |
with: | |
java-version: 17 | |
distribution: 'temurin' | |
architecture: x64 | |
- name: Кэширование модулей | |
uses: actions/cache@v3 | |
env: | |
cache-name: cache-node-modules | |
with: | |
path: ~/.npm | |
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }} | |
restore-keys: | | |
${{ runner.os }}-build-${{ env.cache-name }}- | |
${{ runner.os }}-build- | |
${{ runner.os }}- | |
- name: Установка модулей | |
run: npm ci | |
- name: Копирование кеша | |
run: cp ./cache/issues.json ./.issues.json | |
- name: Сборка сайта | |
run: npm run build | |
- name: Валидация | |
run: npx node-w3c-validator -i ./dist/**/*.html -f lint -ev |