From 8d8f3e4e60c6d65209d7baed0c0a9d29a161b7b3 Mon Sep 17 00:00:00 2001 From: Denis Smet Date: Fri, 19 Apr 2024 23:27:09 +0300 Subject: [PATCH] Enhance demo workflow by adding steps (#186) --- .github/workflows/demo.yml | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) diff --git a/.github/workflows/demo.yml b/.github/workflows/demo.yml index 4c5d16be..4196881e 100644 --- a/.github/workflows/demo.yml +++ b/.github/workflows/demo.yml @@ -65,6 +65,7 @@ jobs: with: csv: ${{ env.CSV_FILES }} schema: ${{ env.INVALID_SCHEMA }} + report: github continue-on-error: true - name: Invalid CSV files - TeamCity @@ -90,3 +91,31 @@ jobs: schema: ${{ env.INVALID_SCHEMA }} report: junit continue-on-error: true + + + create-schema: + name: Create schema based on CSV + runs-on: ubuntu-latest + steps: + - name: Checkout code + uses: actions/checkout@v4 + + - name: Docker pull + run: docker pull jbzoo/csv-blueprint:latest + + - name: 👍 Create schema based on `demo.csv` + run: docker run --rm --workdir=/files -v .:/files jbzoo/csv-blueprint:latest create-schema -c ./tests/fixtures/demo.csv --check-syntax --ansi + + + debug-schema: + name: Debug schema with presets + runs-on: ubuntu-latest + steps: + - name: Checkout code + uses: actions/checkout@v4 + + - name: Docker pull + run: docker pull jbzoo/csv-blueprint:latest + + - name: 👍 Debug schema with presets `preset_usage.yml` + run: docker run --rm --workdir=/files -v .:/files jbzoo/csv-blueprint:latest debug-schema -s ./schema-examples/preset_usage.yml --ansi