-
Notifications
You must be signed in to change notification settings - Fork 1
87 lines (73 loc) · 1.92 KB
/
test.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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
name: Test
on:
push:
branches:
- main
- develop
- stablization
- feature/hotfix
pull_request:
branches:
- main
- develop
jobs:
build_backend:
name: Build Backend
runs-on: ubuntu-latest
env:
SUPABASE_URL: https://mocked-supabase-url.supabase.co
SUPABASE_ANON_KEY: mockedKey
SECRET_ENCRYPTION_KEY: mockedEncryptionKey=
ACCESS_KEY: MockedAccessKey
steps:
- uses: actions/checkout@v2
- name: Use Node.js 20.x
uses: actions/setup-node@v3
with:
node-version: 20.x
- name: Install backend dependencies
run: |
cd Backend
npm install
npm install --save-dev babel-plugin-istanbul
npm install -g coveralls
- name: Run backend tests
run: |
cd Backend
npm run test
build_frontend:
name: Build Frontend
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Use Node.js 20.x
uses: actions/setup-node@v3
with:
node-version: 20.x
- name: Install frontend dependencies
run: |
cd Frontend
npm install
npm install --save-dev babel-plugin-istanbul
npm install -g coveralls
- name: Run frontend tests
run: |
cd Frontend
npm run test
debug:
name: Debug Workspace
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Debug Backend Workspace
run: |
echo "Listing files in Backend directory:"
ls -la Backend
echo "Displaying package.json in Backend directory:"
cat Backend/package.json
- name: Debug Frontend Workspace
run: |
echo "Listing files in Frontend directory:"
ls -la Frontend
echo "Displaying package.json in Frontend directory:"
cat Frontend/package.json