Skip to content

feat:ranking-UI

feat:ranking-UI #64

Workflow file for this run

name: CICD
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
ci:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [18.x]
steps:
- name: Copy repository
uses: actions/checkout@v4
- name: Create empty .env files
run: |
echo "${{ secrets.ENV_FILE }}" > ./.env
touch ./server/.env
touch ./client/.env
- name: Set up Docker Compose
run: docker compose build
- name: Server lint
run: docker compose run server npm run lint:dryrun
- name: Client lint
run: docker compose run client npm run lint
# cd:
# runs-on: ubuntu-latest
# needs: ci
# if: github.event_name == 'push' && github.ref == 'refs/heads/main'
# # ssh to server and run commands
# steps:
# - name: SSH and Deploy
# uses: appleboy/ssh-action@master
# with:
# host: ${{ secrets.SERVER_HOST }}
# username: ${{ secrets.SERVER_USER }}
# key: ${{ secrets.SSH_PRIVATE_KEY }}
# script: |
# cd ~/project/develop &&
# git checkout main &&
# git pull origin &&
# docker compose up --build -d