Skip to content

Commit

Permalink
Enhance demo workflow by adding steps (#186)
Browse files Browse the repository at this point in the history
  • Loading branch information
SmetDenis authored Apr 19, 2024
1 parent 143dc97 commit 8d8f3e4
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/demo.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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

0 comments on commit 8d8f3e4

Please sign in to comment.