automated-tests.yml 1.0 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. name: Musare Automated Tests
  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. tests:
  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: Test Backend
  33. # run: ./musare.sh test backend
  34. - name: Test Frontend
  35. run: ./musare.sh test frontend