Skip to content

Commit

Permalink
Adding linter.
Browse files Browse the repository at this point in the history
  • Loading branch information
bsommardahl committed Jun 8, 2023
1 parent 703669b commit bb74675
Showing 1 changed file with 21 additions and 1 deletion.
22 changes: 21 additions & 1 deletion .github/workflows/ci-cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ on:
jobs:
build:
name: Build front-end artifact
needs:
- audit
runs-on: ubuntu-latest
steps:
- name: Checking out that code
Expand All @@ -34,4 +36,22 @@ jobs:
node-version: 16.x

- name: Run an audit
run: cd frontend && npm audit --production
run: cd frontend && npm audit --production

lint:
name: Ensure code style
runs-on: ubuntu-latest
needs: build
steps:
- uses: actions/checkout@v3

- uses: actions/setup-node@v3
with:
node-version: 16.x

- name: Install deps
run: cd frontend && npm i

- name: Run the linter
run: cd frontend && npm run lint

0 comments on commit bb74675

Please sign in to comment.