Skip to content

Commit 5f66195

Browse files
author
Tamoor Shahid
committed
Written basic CI that imports linting yaml
1 parent 5ab1a8d commit 5f66195

File tree

3 files changed

+32
-15
lines changed

3 files changed

+32
-15
lines changed

.github/workflows/_lint.yaml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
on:
2+
workflow_call:
3+
4+
jobs:
5+
lint:
6+
runs-on: ubuntu-latest
7+
steps:
8+
- uses: actions/checkout@v4
9+
10+
- name: Set up Node.js
11+
uses: actions/setup-node@v4
12+
with:
13+
node-version: 20
14+
cache: "yarn"
15+
16+
- name: Install dependencies
17+
run: yarn install --frozen-lockfile
18+
19+
- name: Run Prettier
20+
run: yan prettier . --check
21+
22+
- name: Run ESLint
23+
run: yarn eslint .

.github/workflows/ci.yaml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
pull_request:
6+
7+
jobs:
8+
lint:
9+
uses: ./.github/workflows/_lint.yaml

.github/workflows/linter.yaml

Lines changed: 0 additions & 15 deletions
This file was deleted.

0 commit comments

Comments
 (0)