Skip to content

Commit bc6d9bc

Browse files
committed
Try github actions
1 parent 82b8937 commit bc6d9bc

File tree

1 file changed

+44
-0
lines changed

1 file changed

+44
-0
lines changed

.github/workflows/ci.yml

+44
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
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

0 commit comments

Comments
 (0)