Skip to content

Commit

Permalink
Add build and test instructions for phar and docker image
Browse files Browse the repository at this point in the history
- Add build and test instructions for phar and docker image in the workflow file.
- Use a multi-line script to specify commands for each step.
  • Loading branch information
Denis Smet committed Mar 11, 2024
1 parent df1df74 commit 730c8a1
Showing 1 changed file with 18 additions and 1 deletion.
19 changes: 18 additions & 1 deletion .github/workflows/demo.yml
Original file line number Diff line number Diff line change
Expand Up @@ -86,5 +86,22 @@ jobs:
run: make build --no-print-directory

- name: Trying to use the phar file
run: ./build/csv-blueprint.phar validate:csv --csv=./tests/fixtures/demo.csv --schema=./tests/schemas/demo_invalid.yml
run: |
./build/csv-blueprint.phar validate:csv
--csv=./tests/fixtures/demo.csv
--schema=./tests/schemas/demo_invalid.yml
continue-on-error: true

docker:
name: Docker
runs-on: ubuntu-latest
steps:
- name: Trying to use the dcoker image
run: |
docker run
-v `pwd`:/parent-host
--rm jbzoo/csv-blueprint
validate:csv
--csv=/parent-host/tests/fixtures/demo.csv
--schema=/parent-host/tests/schemas/demo_invalid.yml
continue-on-error: true

0 comments on commit 730c8a1

Please sign in to comment.