Skip to content

Commit d1e055e

Browse files
committed
feat: added node workflow
1 parent fea0d34 commit d1e055e

File tree

1 file changed

+26
-8
lines changed

1 file changed

+26
-8
lines changed

.github/workflows/ci.yml

Lines changed: 26 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,29 @@ env:
99
RUST_BACKTRACE: 1
1010

1111
jobs:
12-
# Job 1: Format Check
12+
build-node:
13+
name: [TS] Build
14+
runs-on: ubuntu-latest
15+
16+
steps:
17+
- name: Checkout repository
18+
uses: actions/checkout@v4
19+
20+
- name: Setup Node.js
21+
uses: actions/setup-node@v4
22+
with:
23+
node-version: 20
24+
25+
- name: Install dependencies
26+
run: npm ci
27+
working-directory: ./reader/ts
28+
29+
- name: Build project
30+
run: npm run build
31+
working-directory: ./reader/ts
32+
1333
format:
14-
name: Format Check
34+
name: [RUST] Format Check
1535
runs-on: ubuntu-latest
1636
steps:
1737
- name: Checkout code
@@ -25,9 +45,8 @@ jobs:
2545
- name: Check formatting
2646
run: cargo fmt --all -- --check
2747

28-
# Job 2: Lint Check
2948
lint:
30-
name: Lint Check
49+
name: [RUST] Lint Check
3150
runs-on: ubuntu-latest
3251
steps:
3352
- name: Checkout code
@@ -52,9 +71,8 @@ jobs:
5271
- name: Run clippy
5372
run: cargo clippy --all-targets --all-features
5473

55-
# Job 3: Build
5674
build:
57-
name: Build
75+
name: [RUST] Build
5876
needs: [ lint, format ]
5977
runs-on: ubuntu-latest
6078
steps:
@@ -79,7 +97,7 @@ jobs:
7997
run: cargo build --verbose --all-features
8098

8199
package:
82-
name: Package
100+
name: [RUST] Package
83101
needs: build
84102
runs-on: ubuntu-latest
85103
steps:
@@ -103,7 +121,7 @@ jobs:
103121
run: cargo package --allow-dirty --verbose --all-features
104122

105123
report:
106-
name: Report
124+
name: [RUST] Report
107125
needs: [ build ]
108126
runs-on: ubuntu-latest
109127
steps:

0 commit comments

Comments
 (0)