Skip to content

Commit f8cbce9

Browse files
committed
update actions
1 parent c7c5a0a commit f8cbce9

File tree

3 files changed

+29
-5
lines changed

3 files changed

+29
-5
lines changed

.github/workflows/docker-deploy.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ jobs:
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

.github/workflows/docker-test.yml

Lines changed: 19 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,34 @@
11
name: Docker Build Test
22

3-
on: [pull_request]
3+
on:
4+
pull_request:
5+
paths:
6+
- "**.js"
7+
- "**.jsx"
8+
- "**.ts"
9+
- "**.tsx"
410

511
jobs:
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

.github/workflows/eslint.yml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,12 @@
11
name: Lint
22

3-
on: [push, pull_request]
3+
on:
4+
pull_request:
5+
paths:
6+
- "**.js"
7+
- "**.jsx"
8+
- "**.ts"
9+
- "**.tsx"
410

511
jobs:
612
eslint:
@@ -10,8 +16,10 @@ jobs:
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:

0 commit comments

Comments
 (0)