Skip to content

Commit 34534ad

Browse files
author
Mikaël Bouchez
committed
feat(ci): add examples with corrections
1 parent 1c302d4 commit 34534ad

File tree

5 files changed

+419
-900
lines changed

5 files changed

+419
-900
lines changed

.github/workflows/ci.yml

Lines changed: 65 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,65 @@
1+
name: CI Pipeline
2+
3+
on:
4+
push:
5+
branches:
6+
- examples
7+
8+
jobs:
9+
lint:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- name: Checkout repository
13+
uses: actions/checkout@v4
14+
15+
- name: Setup Node.js
16+
uses: actions/setup-node@v4
17+
with:
18+
node-version: 22
19+
cache: "npm"
20+
21+
- name: Install dependencies
22+
run: npm install
23+
24+
- name: Run lint
25+
run: npm run lint
26+
27+
type-checking:
28+
runs-on: ubuntu-latest
29+
steps:
30+
- name: Checkout repository
31+
uses: actions/checkout@v4
32+
33+
- name: Setup Node.js
34+
uses: actions/setup-node@v4
35+
with:
36+
node-version: 22
37+
cache: "npm"
38+
39+
- name: Install dependencies
40+
run: npm install
41+
42+
- name: Run type check
43+
run: npm run typing-check
44+
45+
test-coverage:
46+
runs-on: ubuntu-latest
47+
steps:
48+
- name: Checkout repository
49+
uses: actions/checkout@v4
50+
51+
- name: Setup Node.js
52+
uses: actions/setup-node@v4
53+
with:
54+
node-version: 22
55+
cache: "npm"
56+
57+
- name: Install dependencies
58+
run: npm install
59+
60+
- name: Run tests with coverage
61+
run: npm run coverage
62+
63+
- name: "Report Coverage"
64+
if: always()
65+
uses: davelosert/vitest-coverage-report-action@v2

.gitignore

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,4 @@ node_modules
5151
!.yarn/sdks
5252
!.yarn/versions
5353
.pnp.*
54-
tsconfig.lib.tsbuildinfo
55-
56-
GITLAB.md
54+
tsconfig.lib.tsbuildinfo

0 commit comments

Comments
 (0)