Skip to content

Commit 6e66171

Browse files
committed
👷 add CI config
1 parent 4a86025 commit 6e66171

File tree

1 file changed

+29
-0
lines changed

1 file changed

+29
-0
lines changed

.github/workflows/linter.yml

+29
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: Portfolio Linter
2+
on:
3+
push:
4+
branches: [main]
5+
pull_request:
6+
branches: [main]
7+
types: [opened, synchronize]
8+
9+
jobs:
10+
linter:
11+
name: ✅ Validate linter
12+
runs-on: ubuntu-latest
13+
14+
steps:
15+
- name: ⬇️ Checkout project
16+
uses: actions/checkout@v3
17+
18+
- name: 🟢 Setup NodeJS 18.x
19+
uses: actions/setup-node@v3
20+
with:
21+
node-version: 18.x
22+
cache: npm
23+
cache-dependency-path: './package-lock.json'
24+
25+
- name: 📥 Install dependencies
26+
run: npm ci
27+
28+
- name: 📑 Check lint
29+
run: npm run lint

0 commit comments

Comments
 (0)