Skip to content

Commit 81bccd4

Browse files
authored
Test on PHP 8.1 (#4)
* Test on PHP 8.1 * Ensure test actually fails * Make it easier to see if test has worked * Better test * Fix better test
1 parent 03be9d1 commit 81bccd4

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

.github/workflows/test.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,15 +8,16 @@ jobs:
88
test:
99
strategy:
1010
matrix:
11-
PHP_VERSION: [ '7.3', '7.4', '8.0']
11+
PHP_VERSION: [ '7.3', '7.4', '8.0', '8.1']
1212
name: Test Apache action
1313
runs-on: ubuntu-latest
1414
steps:
1515
- name: Create fake site
1616
run: |
1717
mkdir /tmp/sut
1818
echo '<?php' | sudo tee /tmp/sut/index.php
19-
echo ' print "<strong>Hello World</strong>";' | sudo tee -a /tmp/sut/index.php
19+
echo ' $text = "It works!";' | sudo tee -a /tmp/sut/index.php
20+
echo ' print "<strong>$text</strong>";' | sudo tee -a /tmp/sut/index.php
2021
shell: bash
2122
- name: Setup PHP
2223
uses: shivammathur/setup-php@v2
@@ -31,4 +32,4 @@ jobs:
3132
http-port: 9090
3233
- name: Test fake site
3334
run: |
34-
curl -sSf http://127.0.0.1:9090 > /dev/null
35+
curl -sSf http://127.0.0.1:9090

0 commit comments

Comments
 (0)