Skip to content

Commit

Permalink
Add phar build and usage workflows
Browse files Browse the repository at this point in the history
Added phar build and usage workflows for building and using the phar file in the project.
  • Loading branch information
Denis Smet committed Mar 11, 2024
1 parent a613bf4 commit 280dd4a
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 1 deletion.
22 changes: 22 additions & 0 deletions .github/workflows/demo.yml
Original file line number Diff line number Diff line change
Expand Up @@ -66,3 +66,25 @@ jobs:
- name: Validate CSV (junit)
run: OUTPUT=junit make demo-github
continue-on-error: true

phar:
name: Phar
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
with:
fetch-depth: 0

- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: 8.3
tools: composer

- name: Build the project
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
continue-on-error: true
2 changes: 1 addition & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ jobs:
run: make build-phar --no-print-directory

- name: Trying to use the phar file
run: ./build/csv-blueprint.phar --help
run: ./build/csv-blueprint.phar

- name: Upload Artifacts
uses: actions/upload-artifact@v3
Expand Down

0 comments on commit 280dd4a

Please sign in to comment.