Skip to content

Commit

Permalink
Test on PHP 8.1 (#4)
Browse files Browse the repository at this point in the history
* Test on PHP 8.1

* Ensure test actually fails

* Make it easier to see if test has worked

* Better test

* Fix better test
  • Loading branch information
alexpott authored Dec 7, 2021
1 parent 03be9d1 commit 81bccd4
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,16 @@ jobs:
test:
strategy:
matrix:
PHP_VERSION: [ '7.3', '7.4', '8.0']
PHP_VERSION: [ '7.3', '7.4', '8.0', '8.1']
name: Test Apache action
runs-on: ubuntu-latest
steps:
- name: Create fake site
run: |
mkdir /tmp/sut
echo '<?php' | sudo tee /tmp/sut/index.php
echo ' print "<strong>Hello World</strong>";' | sudo tee -a /tmp/sut/index.php
echo ' $text = "It works!";' | sudo tee -a /tmp/sut/index.php
echo ' print "<strong>$text</strong>";' | sudo tee -a /tmp/sut/index.php
shell: bash
- name: Setup PHP
uses: shivammathur/setup-php@v2
Expand All @@ -31,4 +32,4 @@ jobs:
http-port: 9090
- name: Test fake site
run: |
curl -sSf http://127.0.0.1:9090 > /dev/null
curl -sSf http://127.0.0.1:9090

0 comments on commit 81bccd4

Please sign in to comment.