#2251 Youtube's experiment flags, more gracefully (+typo #2520 #2521 … #76
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: eslint, csslint, jest, npm test, jslint | |
on: | |
push: | |
branches: | |
- master | |
- 'feature/*' | |
- ESlint | |
pull_request: | |
branches: | |
- master | |
jobs: | |
lint-and-test: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Set up Node.js | |
uses: actions/setup-node@v4 | |
with: | |
node-version: '20' | |
- name: Install dependencies | |
run: npm install --force | |
- name: Run eslint | |
run: npx eslint --config=tests/eslint_rules.config.mjs | |
continue-on-error: true | |
# - name: Run JSLint | |
# run: npx jslint "**/*.js" | |
# continue-on-error: true | |
- name: Run Jest | |
run: npx jest # --config=tests/jest.config.js | |
- name: Run npm test | |
run: npm test | |
- name: Install csslint using npm | |
run: npm install -g [email protected] | |
# - name: Lint CSS files | |
# run: | | |
# for file in $(grep -rl --include='*.css' '' ./); do npx csslint --config tests/csslint_rules.json "$file"; done | |