Skip to content

Commit 9a4aa36

Browse files
committed
👷 add CI workflow
1 parent ea03812 commit 9a4aa36

File tree

1 file changed

+51
-0
lines changed

1 file changed

+51
-0
lines changed

.github/workflows/ci.yml

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
name: InfoReader CI
2+
3+
on:
4+
push:
5+
branches: [main]
6+
pull_request:
7+
branches: [main]
8+
types: [opened, synchronize]
9+
10+
jobs:
11+
linter:
12+
name: ✅ Validate linter
13+
runs-on: ubuntu-latest
14+
15+
steps:
16+
- name: ⬇️ Checkout project
17+
uses: actions/checkout@v3
18+
19+
- name: 🟢 Setup NodeJS 18.x
20+
uses: actions/setup-node@v3
21+
with:
22+
node-version: 18.x
23+
cache: npm
24+
cache-dependency-path: './package-lock.json'
25+
26+
- name: 📥 Install dependencies
27+
run: npm ci
28+
29+
- name: 📑 Check lint
30+
run: npm run lint
31+
32+
test:
33+
name: 🧑‍🔬 Test project
34+
runs-on: ubuntu-latest
35+
36+
steps:
37+
- name: ⬇️ Checkout project
38+
uses: actions/checkout@v3
39+
40+
- name: 🟢 Setup NodeJS 18.x
41+
uses: actions/setup-node@v3
42+
with:
43+
node-version: 18.x
44+
cache: npm
45+
cache-dependency-path: './package-lock.json'
46+
47+
- name: 📥 Install dependencies
48+
run: npm ci
49+
50+
- name: 🧪 Run challenges
51+
run: npm run test -- --no-watch --code-coverage --browsers=ChromeHeadlessCI

0 commit comments

Comments
 (0)