Skip to content

Commit 2ad51ee

Browse files
AmirAmir
authored andcommitted
init
1 parent 26e2f11 commit 2ad51ee

File tree

1 file changed

+34
-3
lines changed

1 file changed

+34
-3
lines changed

.github/workflows/test.yml

Lines changed: 34 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
name: E2E Test
1+
name: CI Linting and E2E Test
2+
23
on:
34
push:
45
branches:
@@ -7,8 +8,38 @@ on:
78
pull_request:
89

910
jobs:
10-
ci:
11-
runs-on: [ubuntu-latest]
11+
linting:
12+
name: Run Linting
13+
runs-on: ubuntu-latest
14+
15+
steps:
16+
- uses: actions/checkout@v4
17+
18+
- name: Enable Corepack
19+
run: corepack enable
20+
21+
- name: Set up Node.js
22+
uses: actions/setup-node@v4
23+
with:
24+
node-version: 20
25+
cache: pnpm
26+
27+
- name: Install dependencies
28+
run: pnpm install
29+
30+
- name: Lint JavaScript
31+
run: pnpm run lint:js
32+
33+
- name: Check formatting
34+
run: pnpm run lint:format
35+
36+
- name: Type checking
37+
run: pnpm run lint:types
38+
39+
tests:
40+
name: Run Tests
41+
runs-on: ubuntu-latest
42+
1243
steps:
1344
- uses: actions/checkout@v4
1445
- run: corepack enable

0 commit comments

Comments
 (0)