Skip to content

Commit

Permalink
Add running tests to Github actions
Browse files Browse the repository at this point in the history
Currently Github actions just build source
add possibility also test things. This
makes sure that there is no regression.
  • Loading branch information
illuusio committed Jun 17, 2022
1 parent dc1b8c8 commit bcb5034
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 2 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/ubuntu-build-php.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:

strategy:
matrix:
container: ["debian:bullseye", "ubuntu:focal"]
container: ["ubuntu:focal"]
php-version: [7.4]

steps:
Expand All @@ -37,6 +37,8 @@ jobs:
run: ./configure
- name: Make source on ${{ matrix.container }}
run: make
- name: Run testcases ${{ matrix.php-version }}
run: make NO_INTERACTION=1 PHP_TEST_SHARED_EXTENSIONS="-c tests/blenc.ini" test

php-8_1:

Expand All @@ -50,7 +52,7 @@ jobs:

strategy:
matrix:
container: ["debian:sid", "ubuntu:22.04"]
container: ["ubuntu:22.04"]
php-version: [8.1]

steps:
Expand All @@ -68,3 +70,5 @@ jobs:
run: ./configure
- name: Make source on ${{ matrix.container }}
run: make
- name: Run testcases ${{ matrix.php-version }}
run: make NO_INTERACTION=1 PHP_TEST_SHARED_EXTENSIONS="-c tests/blenc.ini" test
7 changes: 7 additions & 0 deletions tests/blenc.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
; comment out next line to disable blenc extension in php
extension=modules/blenc.so

; The location where BLENC can find the file containing a list of
; available decryption keys. This file must be readable by web-server.
;
blenc.key_file = "tests/keys.txt"

0 comments on commit bcb5034

Please sign in to comment.