Skip to content

Commit

Permalink
update actions
Browse files Browse the repository at this point in the history
  • Loading branch information
RafaelCenzano committed Sep 27, 2024
1 parent c7c5a0a commit f8cbce9
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/docker-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ jobs:
run: |
npm ci --legacy-peer-deps
CI=false
REACT_APP_BACKEND_SERVER="http://labconnect.cs.rpi.edu:9000"
REACT_APP_BACKEND_SERVER="https://api.labconnect.cs.rpi.edu"
npm run build
# 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.
- name: Log in to the Container registry
Expand Down
22 changes: 19 additions & 3 deletions .github/workflows/docker-test.yml
Original file line number Diff line number Diff line change
@@ -1,18 +1,34 @@
name: Docker Build Test

on: [pull_request]
on:
pull_request:
paths:
- "**.js"
- "**.jsx"
- "**.ts"
- "**.tsx"

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- name: Build React App
run: |
npm ci --legacy-peer-deps
CI=false
REACT_APP_BACKEND_SERVER="http://labconnect.cs.rpi.edu:9000"
REACT_APP_BACKEND_SERVER="https://api.labconnect.cs.rpi.edu"
npm run build
- name: "Build Docker Image"
run: |
docker build .
docker build -t labconnect-frontend .
- name: "Run Docker Container"
run: |
docker run -d --name labconnect-frontend-container labconnect-frontend
sleep 60
docker logs labconnect-frontend-container
docker stop labconnect-frontend-container
docker rm labconnect-frontend-container
10 changes: 9 additions & 1 deletion .github/workflows/eslint.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
name: Lint

on: [push, pull_request]
on:
pull_request:
paths:
- "**.js"
- "**.jsx"
- "**.ts"
- "**.tsx"

jobs:
eslint:
Expand All @@ -10,8 +16,10 @@ jobs:
- uses: actions/setup-node@v3
with:
node-version: 22

- name: Install dependencies
run: npm ci --legacy-peer-deps

- name: Run EsLint
uses: sibiraj-s/action-eslint@v3
with:
Expand Down

0 comments on commit f8cbce9

Please sign in to comment.