Skip to content

Заменяет OG для главной (#1284) #1749

Заменяет OG для главной (#1284)

Заменяет OG для главной (#1284) #1749

Workflow file for this run

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