-
Notifications
You must be signed in to change notification settings - Fork 1.1k
36 lines (27 loc) · 692 Bytes
/
Copy pathci.yml
File metadata and controls
36 lines (27 loc) · 692 Bytes
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
name: CI Pipeline
on:
pull_request:
branches:
- compose
jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: 18
- name: Install Backend Dependencies
working-directory: ./mern/backend
run: npm install
- name: Install Frontend Dependencies
working-directory: ./mern/frontend
run: npm install
- name: Run Backend Tests
working-directory: ./mern/backend
run: npm test || true
- name: Run Frontend Tests
working-directory: ./mern/frontend
run: npm test || true