File tree 1 file changed +44
-0
lines changed
1 file changed +44
-0
lines changed Original file line number Diff line number Diff line change
1
+ name : CI Pipeline
2
+
3
+ on :
4
+ push :
5
+ branches :
6
+ - master
7
+ pull_request :
8
+ branches :
9
+ - master
10
+
11
+ jobs :
12
+ ci :
13
+ runs-on : ubuntu-latest
14
+
15
+ steps :
16
+ # Step 1: Check out the repository
17
+ - name : Checkout code
18
+ uses : actions/checkout@v3
19
+
20
+ # Step 2: Set up Node.js and pnpm
21
+ - name : Set up Node.js
22
+ uses : actions/setup-node@v3
23
+ with :
24
+ node-version : 20 # Specify the Node.js version you want
25
+ cache : ' pnpm'
26
+
27
+ - name : Install pnpm
28
+ run : npm install -g pnpm
29
+
30
+ # Step 3: Install dependencies
31
+ - name : Install dependencies
32
+ run : pnpm install
33
+
34
+ # Step 4: Build the application
35
+ - name : Build
36
+ run : pnpm run build
37
+
38
+ # Step 5: Lint the code
39
+ - name : Lint
40
+ run : pnpm run lint
41
+
42
+ # Step 6: Run tests with coverage
43
+ # - name: Test with coverage
44
+ # run: pnpm run test:cover
You can’t perform that action at this time.
0 commit comments