automated-tests.yml 1019 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. name: Musare Automated Tests
  2. on: [ push, pull_request, workflow_dispatch ]
  3. env:
  4. COMPOSE_PROJECT_NAME: musare
  5. RESTART_POLICY: unless-stopped
  6. CONTAINER_MODE: production
  7. BACKEND_HOST: 127.0.0.1
  8. BACKEND_PORT: 8080
  9. FRONTEND_HOST: 127.0.0.1
  10. FRONTEND_PORT: 80
  11. FRONTEND_MODE: production
  12. MONGO_HOST: 127.0.0.1
  13. MONGO_PORT: 27017
  14. MONGO_ROOT_PASSWORD: PASSWORD_HERE
  15. MONGO_USER_USERNAME: musare
  16. MONGO_USER_PASSWORD: OTHER_PASSWORD_HERE
  17. MONGO_DATA_LOCATION: .db
  18. MONGO_VERSION: 5.0
  19. REDIS_HOST: 127.0.0.1
  20. REDIS_PORT: 6379
  21. REDIS_PASSWORD: PASSWORD
  22. REDIS_DATA_LOCATION: .redis
  23. jobs:
  24. tests:
  25. runs-on: ubuntu-latest
  26. steps:
  27. - uses: actions/checkout@v3
  28. - name: Build Musare
  29. run: |
  30. cp .env.example .env
  31. ./musare.sh build
  32. - name: Start Musare
  33. run: ./musare.sh start
  34. - name: Test Frontend
  35. run: ./musare.sh test frontend