mirror of
https://github.com/datahub-project/datahub.git
synced 2025-12-27 09:58:14 +00:00
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 <hsheth2@gmail.com> * Update .github/workflows/check-quickstart.yml Co-authored-by: Harshal Sheth <hsheth2@gmail.com> Co-authored-by: Harshal Sheth <hsheth2@gmail.com>
This commit is contained in:
parent
5c7975bd7c
commit
120875f3fd
47
.github/workflows/check-quickstart.yml
vendored
Normal file
47
.github/workflows/check-quickstart.yml
vendored
Normal file
@ -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"
|
||||
Loading…
x
Reference in New Issue
Block a user