I'm using Github Actions for the first time. I'm using Vue-CLI & I want to create a job that lint my files on push & breaks the build process if there's ESLint'errors.
This is my package.json's scripts:
"scripts": {
"serve": "vue-cli-service serve",
"build": "vue-cli-service build",
"lint": "vue-cli-service lint",
},
This is my .github/workflows/main.yml file:
name: Lint files on push
on: push
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Install modules
run: npm install
- name: Run ESLint
run: npm run lint
I was using this template as inspiration. As you see in the screenshot below. The job is finished successfully, but it doesn't break the build or either fixes the linting. What am I doing wrong?
