Set working directory of linter

This commit is contained in:
Gabe Kangas 2022-07-10 17:07:59 -07:00
parent 100b43dd3a
commit 6b45715724
No known key found for this signature in database
GPG key ID: 9A56337728BC81EA

View file

@ -9,6 +9,10 @@ on:
jobs:
prettier:
runs-on: ubuntu-latest
defaults:
run:
working-directory: ./web
if: ${{ github.actor != 'dependabot[bot]' }}
steps:
@ -30,13 +34,16 @@ jobs:
linter:
runs-on: ubuntu-latest
defaults:
run:
working-directory: ./web
name: Run linter on changed files
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Install Dependencies
run: cd web && npm install
run: npm install
- name: Lint
run: npm run lint