automated-tests.yml 842 B

1234567891011121314151617181920212223242526272829
  1. name: Musare Automated Tests
  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. tests:
  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: Test Backend
  24. run: ./musare.sh test backend
  25. - name: Test Frontend
  26. run: ./musare.sh test frontend