Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,10 @@ jobs:

- uses: cachix/install-nix-action@v17
with:
nix_path: nixpkgs=channel:nixos-25.05
nix_path: nixpkgs=channel:nixos-unstable:phps=https://github.com/fossar/nix-phps/archive/master.tar.gz
extra_nix_config: |
trusted-public-keys = cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY= fossar.cachix.org-1:Zv6FuqIboeHPWQS7ysLCJ7UT7xExb4OE8c4LyGb5AsE=
substituters = https://cache.nixos.org/ https://fossar.cachix.org

- name: Run Unit Tests PHP8.1
run: nix-shell --pure --run project-test-unit
Expand Down
8 changes: 6 additions & 2 deletions shell.nix
Original file line number Diff line number Diff line change
@@ -1,10 +1,14 @@
{
pkgs ? import <nixpkgs> { }
,php81 ? import <phps>
,phpVersion ? "php81"
}:

let
php = pkgs.${phpVersion}.buildEnv {
phpVersionPkgs =
if (phpVersion == "php81") then php81.packages.x86_64-linux.${phpVersion}
else pkgs.${phpVersion};
php = phpVersionPkgs.buildEnv {
extensions = { enabled, all }: enabled ++ (with all; [
xdebug
]);
Expand All @@ -14,7 +18,7 @@ let
memory_limit = 4G
'';
};
inherit(pkgs."${phpVersion}Packages") composer;
inherit(phpVersionPkgs.packages) composer;

projectInstall = pkgs.writeShellApplication {
name = "project-install";
Expand Down