name: dashboard docker test on: push: branches: - master pull_request: branches: - master jobs: dashboard-docker-test: strategy: fail-fast: false matrix: os: - centos - alpine name: build dashboard & test on ${{ matrix.os }} runs-on: ubuntu-latest env: APISIX_DASHBOARD_TAG: "2.10.1" steps: - name: Checkout uses: actions/checkout@v2 - name: Build and run run: | make build-dashboard-${{ matrix.os }} docker-compose -f ./compose/dashboard-compose.yaml up -d sleep 30 docker logs compose_dashboard_1 - name: check run: | wget https://raw.githubusercontent.com/apache/apisix-dashboard/master/api/test/shell/manager_smoking.sh chmod +x ./manager_smoking.sh sh manager_smoking.sh -s true - name: Tar Image run: | make save-dashboard-${{ matrix.os }}-tar - name: Upload Image uses: actions/upload-artifact@v2 with: path: ./package