Merge pull request #761 from apify/jancurn-patch-1 #1153
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 18 | |
uses: actions/setup-node@v4 | |
with: | |
node-version: 18 | |
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 | |
lint_content: | |
name: Lint markdown content | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout Source code | |
uses: actions/checkout@v4 | |
- name: Use Node.js 18 | |
uses: actions/setup-node@v4 | |
with: | |
node-version: 18 | |
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:md | |
lint_code: | |
name: Lint app code | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout Source code | |
uses: actions/checkout@v4 | |
- name: Use Node.js 18 | |
uses: actions/setup-node@v4 | |
with: | |
node-version: 18 | |
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 |