dashboard-docker-test.yaml 934 B

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. name: dashboard docker test
  2. on:
  3. push:
  4. branches:
  5. - master
  6. pull_request:
  7. branches:
  8. - master
  9. jobs:
  10. dashboard-docker-test:
  11. name: build dashboard & test
  12. runs-on: ubuntu-latest
  13. env:
  14. APISIX_DASHBOARD_TAG: 2.7.1
  15. steps:
  16. - name: Checkout
  17. uses: actions/checkout@v2
  18. - name: Build and run
  19. run: |
  20. make build-dashboard
  21. docker-compose -f ./compose/dashboard-compose.yaml up -d
  22. sleep 30
  23. docker logs compose_dashboard_1
  24. - name: check
  25. run: |
  26. wget https://raw.githubusercontent.com/apache/apisix-dashboard/master/api/test/shell/manager_smoking.sh
  27. chmod +x ./manager_smoking.sh
  28. sh manager_smoking.sh -s true
  29. - name: Tar Image
  30. run: |
  31. make save-dashboard-tar
  32. - name: Upload Image
  33. uses: actions/upload-artifact@v2
  34. with:
  35. path: ./package