1- name : Rust CI/CD Pipeline
1+ name : " Rust CI/CD Pipeline"
22
33on :
44 push :
1010
1111jobs :
1212 node :
13- name : [TS] Build
13+ name : " [TS] Build"
1414 runs-on : ubuntu-latest
1515
1616 steps :
17- - name : Checkout repository
17+ - name : " Checkout repository"
1818 uses : actions/checkout@v4
1919
20- - name : Setup Node.js
20+ - name : " Setup Node.js"
2121 uses : actions/setup-node@v4
2222 with :
23- node-version : 20
23+ node-version : 24
2424
25- - name : Install dependencies
25+ - name : " Install dependencies"
2626 run : npm ci
2727 working-directory : ./reader/ts
2828
29- - name : Build project
29+ - name : " Build project"
3030 run : npm run build
3131 working-directory : ./reader/ts
3232
3333 format :
34- name : [RUST] Format Check
34+ name : " [RUST] Format Check"
3535 runs-on : ubuntu-latest
3636 steps :
37- - name : Checkout code
37+ - name : " Checkout code"
3838 uses : actions/checkout@v5
3939
40- - name : Install Rust toolchain
40+ - name : " Install Rust toolchain"
4141 uses : dtolnay/rust-toolchain@stable
4242 with :
4343 components : rustfmt
4444
45- - name : Check formatting
45+ - name : " Check formatting"
4646 run : cargo fmt --all -- --check
4747
4848 lint :
49- name : [RUST] Lint Check
49+ name : " [RUST] Lint Check"
5050 runs-on : ubuntu-latest
5151 steps :
52- - name : Checkout code
52+ - name : " Checkout code"
5353 uses : actions/checkout@v5
5454
55- - name : Install Rust toolchain
55+ - name : " Install Rust toolchain"
5656 uses : dtolnay/rust-toolchain@stable
5757 with :
5858 components : clippy
5959
60- - name : Cache cargo registry
60+ - name : " Cache cargo registry"
6161 uses : actions/cache@v4
6262 with :
6363 path : |
@@ -68,21 +68,21 @@ jobs:
6868 restore-keys : |
6969 ${{ runner.os }}-cargo-
7070
71- - name : Run clippy
71+ - name : " Run clippy"
7272 run : cargo clippy --all-targets --all-features
7373
7474 build :
75- name : [RUST] Build
76- needs : [ lint, format ]
75+ name : " [RUST] Build"
76+ needs : [lint, format]
7777 runs-on : ubuntu-latest
7878 steps :
79- - name : Checkout code
79+ - name : " Checkout code"
8080 uses : actions/checkout@v5
8181
82- - name : Install Rust toolchain
82+ - name : " Install Rust toolchain"
8383 uses : dtolnay/rust-toolchain@stable
8484
85- - name : Cache cargo registry
85+ - name : " Cache cargo registry"
8686 uses : actions/cache@v4
8787 with :
8888 path : |
@@ -93,20 +93,21 @@ jobs:
9393 restore-keys : |
9494 ${{ runner.os }}-cargo-
9595
96- - name : Build project
96+ - name : " Build project"
9797 run : cargo build --verbose --all-features
9898
9999 package :
100- name : [RUST] Package
100+ name : " [RUST] Package"
101101 needs : build
102102 runs-on : ubuntu-latest
103103 steps :
104- - name : Checkout code
104+ - name : " Checkout code"
105105 uses : actions/checkout@v5
106- - name : Install Rust toolchain
106+
107+ - name : " Install Rust toolchain"
107108 uses : dtolnay/rust-toolchain@stable
108109
109- - name : Cache cargo registry
110+ - name : " Cache cargo registry"
110111 uses : actions/cache@v4
111112 with :
112113 path : |
@@ -117,21 +118,21 @@ jobs:
117118 restore-keys : |
118119 ${{ runner.os }}-cargo-
119120
120- - name : Build project
121+ - name : " Build project"
121122 run : cargo package --allow-dirty --verbose --all-features
122123
123124 report :
124- name : [RUST] Report
125- needs : [ build ]
125+ name : " [RUST] Report"
126+ needs : [build]
126127 runs-on : ubuntu-latest
127128 steps :
128- - name : Checkout code
129+ - name : " Checkout code"
129130 uses : actions/checkout@v5
130131
131- - name : Install Rust toolchain
132+ - name : " Install Rust toolchain"
132133 uses : dtolnay/rust-toolchain@stable
133134
134- - name : Cache cargo registry
135+ - name : " Cache cargo registry"
135136 uses : actions/cache@v4
136137 with :
137138 path : |
@@ -142,5 +143,5 @@ jobs:
142143 restore-keys : |
143144 ${{ runner.os }}-cargo-
144145
145- - name : Generate report
146+ - name : " Generate report"
146147 run : cargo run report
0 commit comments