Skip to content

Commit

Permalink
Update Docker actions in GitHub Workflow
Browse files Browse the repository at this point in the history
Added distinct Docker run actions for valid and invalid CSV file validation in the GitHub workflows main.yml file. Extended the workflow steps to individually deal with valid and invalid CSV files. Related image and volume parameters have been adjusted accordingly to run the validation tests properly.
  • Loading branch information
Denis Smet committed Mar 13, 2024
1 parent 8cf6da1 commit 8554aac
Showing 1 changed file with 20 additions and 3 deletions.
23 changes: 20 additions & 3 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -227,8 +227,25 @@ jobs:
- name: 🐳 Building Docker Image
run: make build-docker

- name: Trying to use the Docker Image
- name: Test help and logo
run: docker run --rm jbzoo/csv-blueprint --ansi

- name: Reporting example via Docker
run: ! make demo-docker --no-print-directory
- name: 👍 Valid CSV file
run: |
docker run --rm \
-v `pwd`:/parent-host \
jbzoo/csv-blueprint \
validate:csv \
--csv=/parent-host/tests/fixtures/demo.csv \
--schema=/parent-host/tests/schemas/demo_valid.yml \
--ansi
- name: 👎 Invalid CSV file
run: |
! docker run --rm \
-v `pwd`:/parent-host \
jbzoo/csv-blueprint \
validate:csv \
--csv=/parent-host/tests/fixtures/demo.csv \
--schema=/parent-host/tests/schemas/demo_invalid.yml \
--ansi

0 comments on commit 8554aac

Please sign in to comment.