Skip to content

Fix(UserPage): color of loading and course group card #55

Fix(UserPage): color of loading and course group card

Fix(UserPage): color of loading and course group card #55

Workflow file for this run

name: CI/CD
on:
push:
branches:
- main # Replace 'main' with your primary branch name
pull_request:
branches:
- main # Replace 'main' with your primary branch name
jobs:
build-and-test:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [20.x]
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Set up Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- name: Install dependencies
run: npm install
- name: Run the tests
run: npm run test
- name: Build
run: npm run build
Deploy:
needs: build-and-test # This ensures that deploy job runs only if build job succeeds
name: deploy
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Connect
uses: appleboy/ssh-action@master
with:
username: ${{ secrets.USERNAME }}
password: ${{ secrets.PASSWORD }}
host: ${{ secrets.HOST }}
port: ${{ secrets.PORT }}
script: |
cd /root/Front-End
docker compose down
git pull
docker compose up --build -d