Skip to content

Commit

Permalink
[TASK] Add PHPUnit to github actions
Browse files Browse the repository at this point in the history
Relates: #525
  • Loading branch information
extcode committed Jun 8, 2024
1 parent b678fbe commit 8921614
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -96,3 +96,33 @@ jobs:
- name: Code Quality (by PHPStan)
run: .build/bin/phpstan analyse -c Build/phpstan.neon

tests-phpunit:
runs-on: ubuntu-latest
needs:
- coding-guideline
- code-quality
steps:
- uses: actions/checkout@v3

- uses: cachix/install-nix-action@v17
with:
nix_path: nixpkgs=channel:nixos-unstable

- name: Run Acceptance Tests PHP8.1
run: nix-shell --pure --run project-test-unit

- name: Run Acceptance Tests PHP8.2
run: nix-shell --arg phpVersion \"php82\" --pure --run project-test-unit

- name: Run Acceptance Tests PHP8.3
run: nix-shell --arg phpVersion \"php83\" --pure --run project-test-unit

- name: Run Acceptance Tests PHP8.1
run: nix-shell --pure --run project-test-functional

- name: Run Acceptance Tests PHP8.2
run: nix-shell --arg phpVersion \"php82\" --pure --run project-test-functional

- name: Run Acceptance Tests PHP8.3
run: nix-shell --arg phpVersion \"php83\" --pure --run project-test-functional

0 comments on commit 8921614

Please sign in to comment.