-
Notifications
You must be signed in to change notification settings - Fork 9
45 lines (36 loc) · 938 Bytes
/
ci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
name: CI Pipeline
on:
push:
branches:
- master
pull_request:
branches:
- master
jobs:
ci:
runs-on: ubuntu-latest
steps:
# Step 1: Check out the repository
- name: Checkout code
uses: actions/checkout@v3
# Step 2: Set up Node.js and pnpm
- name: Set up Node.js
uses: actions/setup-node@v3
with:
node-version: 20 # Specify the Node.js version you want
# cache: 'pnpm'
# Step 3: Install pnpm
- name: Install pnpm
run: npm install -g pnpm``
# Step 4: Install dependencies
- name: Install dependencies
run: pnpm install
# Step 5: Build the application
- name: Build
run: pnpm run build
# Step 6: Lint the code
- name: Lint
run: pnpm run lint
# Step 7: Run tests with coverage
# - name: Test with coverage
# run: pnpm run test:cover