Merge pull request #28 from juice-shop/master #26
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: "Let me lint:fix that for you" | |
on: [push] | |
jobs: | |
LMLFTFY: | |
runs-on: ubuntu-latest | |
steps: | |
- name: "Check out Git repository" | |
uses: actions/checkout@5a4ac9002d0be2fb38bd78e4b4dbde5606d7042f #v2: v2.3.4 available | |
- name: "Use Node.js 14" | |
uses: actions/setup-node@f1f314fca9dfce2769ece7d933488f076716723e #v1: v2.x available | |
with: | |
node-version: 16 | |
- name: "Install CLI tools" | |
run: npm install -g @angular/cli | |
- name: "Install application" | |
run: | | |
npm install --ignore-scripts | |
cd frontend | |
npm install --ignore-scripts --legacy-peer-deps | |
- name: "Fix everything which can be fixed" | |
run: 'npm run lint:fix' | |
- uses: stefanzweifel/git-auto-commit-action@v4.0.0 | |
with: | |
commit_message: "Auto-fix linting issues" | |
branch: ${{ github.head_ref }} | |
commit_options: '--signoff' | |
commit_user_name: JuiceShopBot | |
commit_user_email: 61591748+JuiceShopBot@users.noreply.github.com | |
commit_author: JuiceShopBot <61591748+JuiceShopBot@users.noreply.github.com> |