1 parent c7af88c commit 0b3549eCopy full SHA for 0b3549e
1 file changed
.github/workflows/main.yml
@@ -0,0 +1,28 @@
1
+name: CI Pipeline
2
+
3
+on:
4
+ push:
5
+ branches: [ main ]
6
+ pull_request:
7
8
9
+jobs:
10
+ build:
11
+ runs-on: ubuntu-latest
12
+ steps:
13
+ - name: Checkout code
14
+ uses: actions/checkout@v3
15
16
+ - name: Set up Environment
17
+ uses: actions/setup-node@v3 # 示例:Node.js环境
18
+ with:
19
+ node-version: '16'
20
21
+ - name: Install dependencies
22
+ run: npm install
23
24
+ - name: Run build
25
+ run: npm run build
26
27
+ - name: Run tests
28
+ run: npm test
0 commit comments