Skip to content

Commit

Permalink
ci: add lint workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
RomanFama592 committed Feb 8, 2024
1 parent db2f8f9 commit 069d796
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 0 deletions.
23 changes: 23 additions & 0 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: ESLint

on: [push]

jobs:
run-linters:
name: Run linters
runs-on: ubuntu-latest

steps:
- name: Check out Git repository
uses: actions/checkout@v4

- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: 20

- name: Install Node.js dependencies
run: yarn install -D

- name: Run linter
run: yarn lint
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
"start:build": "astro check && astro build && astro preview --host",
"build": "astro check && astro build",
"start": "astro preview --host",
"lint": "astro check",
"astro": "astro"
},
"dependencies": {
Expand Down

0 comments on commit 069d796

Please sign in to comment.