Skip to content

Commit

Permalink
No commit message
Browse files Browse the repository at this point in the history
  • Loading branch information
max-sixty committed Jul 28, 2023
1 parent 2ed9705 commit 448bf4a
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 12 deletions.
12 changes: 1 addition & 11 deletions .github/workflows/test-php.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,18 +23,8 @@ jobs:
steps:
- name: 📂 Checkout code
uses: actions/checkout@v3
- uses: actions-rs/toolchain@v1
with:
toolchain: stable
- uses: arduino/setup-task@v1
with:
repo-token: "${{ secrets.GITHUB_TOKEN }}"
- run: task build-php
# - name: 📦 Install dependencies using Composer
# uses: php-actions/composer@v6
# with:
# args: --working-dir=bindings/prql-php
# php_extensions: FFI
- name: 🧪 Run tests using PHPUnit
run: vendor/bin/phpunit tests
working-directory: bindings/prql-php
- run: task test-php
6 changes: 6 additions & 0 deletions Taskfile.yml
Original file line number Diff line number Diff line change
Expand Up @@ -334,6 +334,12 @@ tasks:
- cp target/release/libprql_lib.* bindings/prql-lib/libprql_lib.h
bindings/prql-php/lib/
- cd bindings/prql-php && composer install

test-php:
dir: bindings/prql-php
cmds:
- vendor/bin/phpunit tests

# The next three tasks are not used for either:
# - the Dockerfile (installing brew takes forever)
# so the Dockerfile simply installs hugo & nodejs directly
Expand Down
2 changes: 1 addition & 1 deletion bindings/prql-php/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ There is a `task build-php` script that:

```
task build-php
./vendor/bin/phpunit tests
task test-php
```

### Code style
Expand Down

0 comments on commit 448bf4a

Please sign in to comment.