fix: fix Apify vale rule #2931
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: Test | |
on: | |
push: | |
branches: [ master, renovate/** ] | |
pull_request: | |
jobs: | |
build: | |
name: Docs build | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout Source code | |
uses: actions/checkout@v4 | |
- name: Use Node.js 20 | |
uses: actions/setup-node@v4 | |
with: | |
node-version: 20 | |
cache: 'npm' | |
cache-dependency-path: 'package-lock.json' | |
always-auth: 'true' | |
registry-url: 'https://npm.pkg.github.com/' | |
scope: '@apify-packages' | |
- name: Install Dependencies | |
run: npm ci --force | |
env: | |
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} | |
- run: npm run build | |
env: | |
INTERCOM_APP_ID: ${{ secrets.INTERCOM_APP_ID }} | |
lint_content: | |
name: Lint markdown content | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout Source code | |
uses: actions/checkout@v4 | |
- name: Get changed files | |
id: changed-files | |
uses: tj-actions/changed-files@v45 | |
with: | |
files: | | |
**/*.md | |
**/*.mdx | |
separator: "," | |
- name: Use Node.js 20 | |
uses: actions/setup-node@v4 | |
with: | |
node-version: 20 | |
cache: 'npm' | |
cache-dependency-path: 'package-lock.json' | |
registry-url: 'https://npm.pkg.github.com/' | |
scope: '@apify-packages' | |
- name: Install Dependencies | |
run: npm ci --force | |
env: | |
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} | |
- name: List and Lint Changed Markdown Files | |
env: | |
ALL_CHANGED_FILES: ${{ steps.changed-files.outputs.all_changed_files }} | |
run: | | |
IFS=',' read -ra FILE_ARRAY <<< "$ALL_CHANGED_FILES" | |
for file in "${FILE_ARRAY[@]}"; do | |
npx markdownlint "$file" | |
done | |
lint_code: | |
name: Lint app code | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout Source code | |
uses: actions/checkout@v4 | |
- name: Use Node.js 20 | |
uses: actions/setup-node@v4 | |
with: | |
node-version: 20 | |
cache: 'npm' | |
cache-dependency-path: 'package-lock.json' | |
registry-url: 'https://npm.pkg.github.com/' | |
scope: '@apify-packages' | |
- name: Install Dependencies | |
run: npm ci --force | |
env: | |
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} | |
- run: npm run lint:code |