-
Notifications
You must be signed in to change notification settings - Fork 2
46 lines (36 loc) · 1.1 KB
/
ReactTesting.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
name: Node.js CI
on:
push:
branches: ["master", "develop"]
pull_request:
branches: ["master", "develop"]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [20.11.1]
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Set up Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
cache: "npm"
- name: Install dependancies
working-directory : ./lvlgg_frontend
run: |
npm install
npm install react-scripts
npm install react-router-dom
npm install @mui/material @emotion/react @emotion/styled
npm install @mui/icons-material
npm install axios
- name: Run the tests
working-directory : ./lvlgg_frontend
run: npm run test
- name: Build
working-directory : ./lvlgg_frontend
run: npm run build --if-present