Skip to content

Commit

Permalink
Let's build the PHAR package in normal tests
Browse files Browse the repository at this point in the history
Note that box requires php81 to work, no matter
of that the generated packages can be executed
with older PHP versions.
  • Loading branch information
stronk7 committed Sep 15, 2023
1 parent 4e06058 commit f9c7381
Showing 1 changed file with 20 additions and 1 deletion.
21 changes: 20 additions & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,6 @@ jobs:
files: ./build/logs/clover.xml
verbose: true


citest:
name: Integration tests
needs: selftest
Expand Down Expand Up @@ -144,3 +143,23 @@ jobs:
moodle-plugin-ci phpunit --verbose --coverage-text --fail-on-warning
moodle-plugin-ci behat --profile default
moodle-plugin-ci behat --profile chrome
buildphar:
name: Build moodle-plugin-ci.phar
needs: selftest
runs-on: ubuntu-22.04

steps:
- name: Check out repository code
uses: actions/checkout@v3

- name: Setup PHP 8.1
uses: shivammathur/setup-php@v2
with:
php-version: 8.1
ini-values: phar.readonly = false

- name: Build PHAR
run: |
make build
php build/moodle-plugin-ci.phar list

0 comments on commit f9c7381

Please sign in to comment.