Skip to content

Commit

Permalink
ci: adds ci linting
Browse files Browse the repository at this point in the history
Adds the steps to lint the codebase in the CI workflow.

closes #259
  • Loading branch information
anguspiv committed Dec 23, 2024
1 parent 7fc028e commit 73a3123
Showing 1 changed file with 27 additions and 1 deletion.
28 changes: 27 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,34 @@ name: CI
on: [push, pull_request]

jobs:
lint:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '20.x'

- name: Cache Node.js modules
id: cache-node-modules
uses: actions/cache@v4
with:
path: node_modules
key: ${{ runner.os }}-node-modules-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-node-modules-
- name: Install dependencies
run: npm ci

- name: Lint
run: npm run lint

commitlint:
runs-on: ubuntu-22.04
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
Expand Down

0 comments on commit 73a3123

Please sign in to comment.