automated-tests.yml 765 B

123456789101112131415161718192021222324252627
  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@v3
  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 Frontend
  24. run: ./musare.sh test frontend