File tree Expand file tree Collapse file tree 3 files changed +29
-5
lines changed
Expand file tree Collapse file tree 3 files changed +29
-5
lines changed Original file line number Diff line number Diff line change 2727 run : |
2828 npm ci --legacy-peer-deps
2929 CI=false
30- REACT_APP_BACKEND_SERVER="http ://labconnect.cs.rpi.edu:9000 "
30+ REACT_APP_BACKEND_SERVER="https ://api. labconnect.cs.rpi.edu"
3131 npm run build
3232 # Uses the `docker/login-action` action to log in to the Container registry registry using the account and password that will publish the packages. Once published, the packages are scoped to the account defined here.
3333 - name : Log in to the Container registry
Original file line number Diff line number Diff line change 11name : Docker Build Test
22
3- on : [pull_request]
3+ on :
4+ pull_request :
5+ paths :
6+ - " **.js"
7+ - " **.jsx"
8+ - " **.ts"
9+ - " **.tsx"
410
511jobs :
612 build :
713 runs-on : ubuntu-latest
814 steps :
915 - uses : actions/checkout@v4
16+
1017 - name : Build React App
1118 run : |
1219 npm ci --legacy-peer-deps
1320 CI=false
14- REACT_APP_BACKEND_SERVER="http ://labconnect.cs.rpi.edu:9000 "
21+ REACT_APP_BACKEND_SERVER="https ://api. labconnect.cs.rpi.edu"
1522 npm run build
23+
1624 - name : " Build Docker Image"
1725 run : |
18- docker build .
26+ docker build -t labconnect-frontend .
27+
28+ - name : " Run Docker Container"
29+ run : |
30+ docker run -d --name labconnect-frontend-container labconnect-frontend
31+ sleep 60
32+ docker logs labconnect-frontend-container
33+ docker stop labconnect-frontend-container
34+ docker rm labconnect-frontend-container
Original file line number Diff line number Diff line change 11name : Lint
22
3- on : [push, pull_request]
3+ on :
4+ pull_request :
5+ paths :
6+ - " **.js"
7+ - " **.jsx"
8+ - " **.ts"
9+ - " **.tsx"
410
511jobs :
612 eslint :
1016 - uses : actions/setup-node@v3
1117 with :
1218 node-version : 22
19+
1320 - name : Install dependencies
1421 run : npm ci --legacy-peer-deps
22+
1523 - name : Run EsLint
1624 uses : sibiraj-s/action-eslint@v3
1725 with :
You can’t perform that action at this time.
0 commit comments