Skip to content

Github actions: ESLint doesn't break build with Github Action #26589

Discussion options

You must be logged in to vote

I figured out the issue. I was linting the file, but I couldn’t see the changes in my PR due that I wasn’t committing & pushing the new changes.

I have refactored my Github Action's workflow to lint the files & push them to the repository.

name: Lint files on push

on: push

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Installing node_modules
run: npm install
- name: Running ESLint
run: npm run lint
- name: Setting Github user.email
run: git config --global user.email "<github-email-goes-here>"
- name: Setting Github user.name
run: git config --global user.name "<github-name-goes-here>"
- name: Adding fixes for committing
run: git add .
- name: Committing E…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
1 participant