Issue 2907 fix link checker by spoofing user-agent #3600
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: JavaScript Linting | |
on: | |
push: | |
branches-ignore: | |
- "dependabot/**" | |
paths: | |
- "package*.json" | |
- ".prettier*" | |
- ".eslint*" | |
- "**/*.js" | |
- ".github/workflows/lint-js.yml" | |
- "!common/**" | |
pull_request: | |
paths: | |
- "package*.json" | |
- ".prettier*" | |
- ".eslint*" | |
- "**/*.js" | |
- ".github/workflows/lint-js.yml" | |
- "!common/**" | |
jobs: | |
lint-js: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Clone repository | |
uses: actions/checkout@v3 | |
# setup-node task is used without a particular version in order to load | |
# the ESLint problem matchers | |
- name: Set up Node.js | |
uses: actions/setup-node@v3 | |
with: | |
cache: npm | |
- name: Install npm dependencies | |
run: npm ci | |
- name: ESLint | |
run: npm run lint:es |