build-lint.yml 1.3 KB

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