From 120875f3fdb2995775d30da23538558febca4e45 Mon Sep 17 00:00:00 2001 From: Aseem Bansal Date: Wed, 3 Aug 2022 06:08:54 +0530 Subject: [PATCH] feat(ci): test quickstart works (#5518) * feat(ci): test quickstart works * do not fail fast * remove macos * add some debug information * tweak triggers * fix workflow file * remove running on every PR * Update .github/workflows/check-quickstart.yml Co-authored-by: Harshal Sheth * Update .github/workflows/check-quickstart.yml Co-authored-by: Harshal Sheth Co-authored-by: Harshal Sheth --- .github/workflows/check-quickstart.yml | 47 ++++++++++++++++++++++++++ 1 file changed, 47 insertions(+) create mode 100644 .github/workflows/check-quickstart.yml diff --git a/.github/workflows/check-quickstart.yml b/.github/workflows/check-quickstart.yml new file mode 100644 index 0000000000..be2851bc3a --- /dev/null +++ b/.github/workflows/check-quickstart.yml @@ -0,0 +1,47 @@ +name: check quickstart +on: + push: + branches: + - master + workflow_dispatch: + +concurrency: + group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} + cancel-in-progress: true + + +jobs: + test-quickstart: + strategy: + fail-fast: false + matrix: + os: [ubuntu-20.04] + runs-on: ${{ matrix.os }} + steps: + - uses: actions/setup-python@v2 + with: + python-version: "3.9.9" + - name: Install acryl-datahub + run: | + pip install --upgrade acryl-datahub + datahub version + python -c "import platform; print(platform.platform())" + - name: Run quickstart + run: | + datahub docker quickstart + - name: Ingest sample data + run: | + datahub docker ingest-sample-data + - name: See status + run: | + docker ps -a && datahub docker check + - name: store logs + if: failure() + run: | + docker logs datahub-gms >& quickstart-gms.log + - name: Upload logs + uses: actions/upload-artifact@v2 + if: failure() + with: + name: docker-quickstart-logs-${{ matrix.os }} + path: "*.log" \ No newline at end of file