dashboard-docker-test.yaml 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  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. strategy:
  12. fail-fast: false
  13. matrix:
  14. os:
  15. - centos
  16. - alpine
  17. name: build dashboard & test on ${{ matrix.os }}
  18. runs-on: ubuntu-latest
  19. env:
  20. APISIX_DASHBOARD_TAG: "2.10.1"
  21. steps:
  22. - name: Checkout
  23. uses: actions/checkout@v2
  24. - name: Build and run
  25. run: |
  26. make build-dashboard-${{ matrix.os }}
  27. docker-compose -f ./compose/dashboard-compose.yaml up -d
  28. sleep 30
  29. docker logs compose_dashboard_1
  30. - name: check
  31. run: |
  32. wget https://raw.githubusercontent.com/apache/apisix-dashboard/master/api/test/shell/manager_smoking.sh
  33. chmod +x ./manager_smoking.sh
  34. sh manager_smoking.sh -s true
  35. - name: Tar Image
  36. run: |
  37. make save-dashboard-${{ matrix.os }}-tar
  38. - name: Upload Image
  39. uses: actions/upload-artifact@v2
  40. with:
  41. path: ./package