mirror of
https://github.com/LBRYFoundation/curate.git
synced 2025-08-23 09:27:24 +00:00
32 lines
No EOL
764 B
YAML
32 lines
No EOL
764 B
YAML
name: ESLint
|
|
on:
|
|
push:
|
|
paths:
|
|
- "src/**"
|
|
- ".eslintrc.*"
|
|
- ".github/workflows/eslint.yml"
|
|
|
|
jobs:
|
|
update:
|
|
name: ESLint
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout repository
|
|
uses: actions/checkout@v3
|
|
- name: Install Node v18
|
|
uses: actions/setup-node@v3
|
|
with:
|
|
node-version: 18
|
|
- name: Install Yarn
|
|
run: npm install -g yarn
|
|
- name: Install dependencies
|
|
run: yarn install
|
|
- name: Run ESLint
|
|
run: yarn run eslint:fix
|
|
- name: Commit changes
|
|
uses: EndBug/add-and-commit@v9
|
|
with:
|
|
add: src
|
|
message: "chore(lint): Auto-fix linting errors"
|
|
env:
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |