Skip to content

Commit

Permalink
Merge pull request #294 from davidcole1340/revert-293-revert-121-feat…
Browse files Browse the repository at this point in the history
…-integration-tests

Add integration tests & fix bug
  • Loading branch information
danog committed Jan 26, 2024
2 parents d7cbae5 + e0568aa commit 8985cb2
Show file tree
Hide file tree
Showing 34 changed files with 621 additions and 208 deletions.
2 changes: 1 addition & 1 deletion .github/actions/embed/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,4 @@ ENV PATH=/cargo/bin:/rust/bin:$PATH

RUN curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y --no-modify-path

ENTRYPOINT [ "/cargo/bin/cargo", "test", "--lib", "--release", "--all-features" ]
ENTRYPOINT [ "/cargo/bin/cargo", "test", "--all", "--release", "--all-features", "--no-fail-fast" ]
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ jobs:
run: cargo build --release --features closure,anyhow --all
# Test & lint
- name: Test inline examples
run: cargo test --release --all --features closure,anyhow
run: cargo test --release --all --features closure,anyhow --no-fail-fast
- name: Run rustfmt
if: matrix.rust == 'stable' && matrix.os == 'ubuntu-latest' && matrix.php == '8.2'
run: cargo fmt --all -- --check
Expand Down
6 changes: 5 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,11 @@ closure = []
embed = []

[workspace]
members = ["crates/macros", "crates/cli"]
members = [
"crates/macros",
"crates/cli",
"tests"
]

[package.metadata.docs.rs]
rustdoc-args = ["--cfg", "docs"]
4 changes: 3 additions & 1 deletion allowed_bindings.rs
Original file line number Diff line number Diff line change
Expand Up @@ -231,6 +231,7 @@ bind! {
_ZEND_TYPE_NULLABLE_BIT,
ts_rsrc_id,
_ZEND_TYPE_NAME_BIT,
_ZEND_TYPE_LITERAL_NAME_BIT,
ZEND_INTERNAL_FUNCTION,
ZEND_USER_FUNCTION,
ZEND_EVAL_CODE,
Expand Down Expand Up @@ -305,5 +306,6 @@ bind! {
php_module_startup,
php_module_shutdown,
php_request_startup,
php_request_shutdown
php_request_shutdown,
instanceof_function_slow
}
Loading

0 comments on commit 8985cb2

Please sign in to comment.