lint.yml 974 B

123456789101112131415161718192021222324252627282930313233
  1. name: Musare Lint
  2. on: [ push, pull_request, workflow_dispatch ]
  3. env:
  4. COMPOSE_PROJECT_NAME: musare
  5. APP_ENV: development
  6. MONGO_ROOT_PASSWORD: PASSWORD_HERE
  7. MONGO_USER_USERNAME: musare
  8. MONGO_USER_PASSWORD: OTHER_PASSWORD_HERE
  9. MONGO_VERSION: 5.0
  10. REDIS_PASSWORD: PASSWORD
  11. jobs:
  12. lint:
  13. runs-on: ubuntu-latest
  14. steps:
  15. - uses: actions/checkout@v4
  16. - name: Build Musare
  17. run: |
  18. cp .env.example .env
  19. sed -i 's/APP_ENV=production/APP_ENV=development/g' .env
  20. ./musare.sh build
  21. - name: Start Musare
  22. run: ./musare.sh start
  23. - name: Backend Lint
  24. run: ./musare.sh lint backend
  25. - name: Frontend Lint
  26. run: ./musare.sh lint frontend
  27. - name: Docs Lint
  28. run: ./musare.sh lint docs
  29. - name: Shell Lint
  30. run: ./musare.sh lint shell