build-lint.yml.disabled 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. name: Musare Build and Lint
  2. on: [ push, pull_request, workflow_dispatch ]
  3. env:
  4. COMPOSE_PROJECT_NAME: musare
  5. RESTART_POLICY: unless-stopped
  6. CONTAINER_MODE: production
  7. BACKEND_HOST: 127.0.0.1
  8. BACKEND_PORT: 8080
  9. FRONTEND_HOST: 127.0.0.1
  10. FRONTEND_PORT: 80
  11. FRONTEND_MODE: production
  12. MONGO_HOST: 127.0.0.1
  13. MONGO_PORT: 27017
  14. MONGO_ROOT_PASSWORD: PASSWORD_HERE
  15. MONGO_USER_USERNAME: musare
  16. MONGO_USER_PASSWORD: OTHER_PASSWORD_HERE
  17. MONGO_DATA_LOCATION: .db
  18. MONGO_VERSION: 5.0
  19. REDIS_HOST: 127.0.0.1
  20. REDIS_PORT: 6379
  21. REDIS_PASSWORD: PASSWORD
  22. REDIS_DATA_LOCATION: .redis
  23. jobs:
  24. build-lint:
  25. runs-on: ubuntu-latest
  26. steps:
  27. - uses: actions/checkout@v3
  28. - name: Build Musare
  29. run: |
  30. cp .env.example .env
  31. ./musare.sh build
  32. - name: Start Musare
  33. run: ./musare.sh start
  34. - name: Backend Lint
  35. run: ./musare.sh lint backend
  36. - name: Backend Typescript
  37. run: ./musare.sh typescript backend
  38. - name: Frontend Lint
  39. run: ./musare.sh lint frontend
  40. # - name: Frontend Typescript
  41. # run: ./musare.sh typescript frontend
  42. - name: Docs Lint
  43. run: ./musare.sh lint docs