Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add extra tests for PHP versions, xdebug and defaults #98

Merged
merged 6 commits into from
Apr 19, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions .github/workflows/pr-drupal-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,13 @@ jobs:
- acquia-downstreamer-1
- acquia-downstreamer-2
- drupal
- acquia-7.4
- acquia-8.0
- acquia-8.1
- acquia-8.2
- acquia-8.3
- acquia-default
- acquia-xdebug
lando-version:
- 3-dev-slim
os:
Expand Down
10 changes: 9 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,15 @@
## v1.3.0 - [April 18, 2024](https://github.com/lando/acquia/releases/tag/v1.3.0)

**NOTICE:** If you use the default PHP version, it is now being updated to PHP 8.2. You may need to specify your PHP version in `.lando.yml`, for example, to set it to PHP 8.0:

```
recipe: acquia
config:
php: '8.0'
```

* Updated mariadb plugin to [v1.3.0](https://github.com/lando/mariadb/releases/tag/v1.3.0). See [#51](https://github.com/lando/mariadb/issues/51).
* Updated default PHP to 8.2
* Changed default PHP to 8.2 and added testing for PHP versions. [#87](https://github.com/lando/acquia/issues/87)
* Updated Drush 8 to 8.4.10

## v1.2.0 - [March 15, 2024](https://github.com/lando/acquia/releases/tag/v1.2.0)
Expand Down
9 changes: 9 additions & 0 deletions examples/acquia-7.4/.lando.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
name: acquia-80
recipe: acquia
config:
php: 7.4
acli_version: 1.30.0

# do not remove this
plugins:
"@lando/acquia": ../..
59 changes: 59 additions & 0 deletions examples/acquia-7.4/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
# Acquia 7.4 Example

This example exists primarily to test the following documentation:

* [Acquia Recipe](https://docs.lando.dev/acquia/config.html)

Start up tests
--------------

Run the following commands to get up and running with this example.

```bash
# Should start up successfully
lando poweroff
lando start
```

Verification commands
---------------------

Run the following commands to validate things are rolling as they should.

```bash
# Should have acli
lando acli -V

# Should be running apache 2.4 by default
lando ssh -s appserver -c "apachectl -V | grep Apache/2.4"
lando ssh -s appserver -c "curl -IL localhost" | grep Server | grep 2.4

# Should use php 7.4, the default
lando php -v | grep "PHP 7.4"

# Should be running mysql 5.7 by default
lando mysql -V | grep 5.7

# Should be able to connect to the database with the default creds
lando mysql acquia -e quit

# Should be running memcached 1.6
lando ssh -s cache -c "memcached --version | grep 1.6"

# Check index is loading
lando ssh -s appserver -c "curl -L localhost" | grep "Hello Lando!"

# Check if AH_SITE_ENVIRONMENT is set
lando ssh -s appserver -c "curl -L localhost/site-environment.php" | grep "LANDO"
```

Destroy tests
-------------

Run the following commands to trash this app like nothing ever happened.

```bash
# Should be destroyed with success
lando destroy -y
lando poweroff
```
3 changes: 3 additions & 0 deletions examples/acquia-7.4/docroot/env.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
<pre>
<?php
print_r($_ENV);
3 changes: 3 additions & 0 deletions examples/acquia-7.4/docroot/index.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
<?php

print('Hello Lando!');
3 changes: 3 additions & 0 deletions examples/acquia-7.4/docroot/site-environment.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
<?php

print($_ENV['AH_SITE_ENVIRONMENT']);
9 changes: 9 additions & 0 deletions examples/acquia-8.0/.lando.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
name: acquia-80
recipe: acquia
config:
php: "8.0"
acli_version: 1.30.0
reynoldsalec marked this conversation as resolved.
Show resolved Hide resolved

# do not remove this
plugins:
"@lando/acquia": ../..
59 changes: 59 additions & 0 deletions examples/acquia-8.0/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
# Acquia 8.0 Example

This example exists primarily to test the following documentation:

* [Acquia Recipe](https://docs.lando.dev/acquia/config.html)

Start up tests
--------------

Run the following commands to get up and running with this example.

```bash
# Should start up successfully
lando poweroff
lando start
```

Verification commands
---------------------

Run the following commands to validate things are rolling as they should.

```bash
# Should have acli
lando acli -V

# Should be running apache 2.4 by default
lando ssh -s appserver -c "apachectl -V | grep Apache/2.4"
lando ssh -s appserver -c "curl -IL localhost" | grep Server | grep 2.4

# Should use php 8.0, the default
lando php -v | grep "PHP 8.0"

# Should be running mysql 5.7 by default
lando mysql -V | grep 5.7

# Should be able to connect to the database with the default creds
lando mysql acquia -e quit

# Should be running memcached 1.6
lando ssh -s cache -c "memcached --version | grep 1.6"

# Check index is loading
lando ssh -s appserver -c "curl -L localhost" | grep "Hello Lando!"

# Check if AH_SITE_ENVIRONMENT is set
lando ssh -s appserver -c "curl -L localhost/site-environment.php" | grep "LANDO"
```

Destroy tests
-------------

Run the following commands to trash this app like nothing ever happened.

```bash
# Should be destroyed with success
lando destroy -y
lando poweroff
```
3 changes: 3 additions & 0 deletions examples/acquia-8.0/docroot/env.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
<pre>
<?php
print_r($_ENV);
3 changes: 3 additions & 0 deletions examples/acquia-8.0/docroot/index.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
<?php

print('Hello Lando!');
3 changes: 3 additions & 0 deletions examples/acquia-8.0/docroot/site-environment.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
<?php

print($_ENV['AH_SITE_ENVIRONMENT']);
8 changes: 8 additions & 0 deletions examples/acquia-8.1/.lando.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
name: acquia-81
recipe: acquia
config:
php: 8.1

# do not remove this
plugins:
"@lando/acquia": ../..
59 changes: 59 additions & 0 deletions examples/acquia-8.1/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
# Acquia 8.1 Example

This example exists primarily to test the following documentation:

* [Acquia Recipe](https://docs.lando.dev/acquia/config.html)

Start up tests
--------------

Run the following commands to get up and running with this example.

```bash
# Should start up successfully
lando poweroff
lando start
```

Verification commands
---------------------

Run the following commands to validate things are rolling as they should.

```bash
# Should have acli
lando acli -V

# Should be running apache 2.4 by default
lando ssh -s appserver -c "apachectl -V | grep Apache/2.4"
lando ssh -s appserver -c "curl -IL localhost" | grep Server | grep 2.4

# Should use php 8.1, the default
lando php -v | grep "PHP 8.1"

# Should be running mysql 5.7 by default
lando mysql -V | grep 5.7

# Should be able to connect to the database with the default creds
lando mysql acquia -e quit

# Should be running memcached 1.6
lando ssh -s cache -c "memcached --version | grep 1.6"

# Check index is loading
lando ssh -s appserver -c "curl -L localhost" | grep "Hello Lando!"

# Check if AH_SITE_ENVIRONMENT is set
lando ssh -s appserver -c "curl -L localhost/site-environment.php" | grep "LANDO"
```

Destroy tests
-------------

Run the following commands to trash this app like nothing ever happened.

```bash
# Should be destroyed with success
lando destroy -y
lando poweroff
```
3 changes: 3 additions & 0 deletions examples/acquia-8.1/docroot/env.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
<pre>
<?php
print_r($_ENV);
3 changes: 3 additions & 0 deletions examples/acquia-8.1/docroot/index.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
<?php

print('Hello Lando!');
3 changes: 3 additions & 0 deletions examples/acquia-8.1/docroot/site-environment.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
<?php

print($_ENV['AH_SITE_ENVIRONMENT']);
8 changes: 8 additions & 0 deletions examples/acquia-8.2/.lando.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
name: acquia-82
recipe: acquia
config:
php: 8.2

# do not remove this
plugins:
"@lando/acquia": ../..
59 changes: 59 additions & 0 deletions examples/acquia-8.2/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
# Acquia 8.2 Example

This example exists primarily to test the following documentation:

* [Acquia Recipe](https://docs.lando.dev/acquia/config.html)

Start up tests
--------------

Run the following commands to get up and running with this example.

```bash
# Should start up successfully
lando poweroff
lando start
```

Verification commands
---------------------

Run the following commands to validate things are rolling as they should.

```bash
# Should have acli
lando acli -V

# Should be running apache 2.4 by default
lando ssh -s appserver -c "apachectl -V | grep Apache/2.4"
lando ssh -s appserver -c "curl -IL localhost" | grep Server | grep 2.4

# Should use php 8.2, the default
lando php -v | grep "PHP 8.2"

# Should be running mysql 5.7 by default
lando mysql -V | grep 5.7

# Should be able to connect to the database with the default creds
lando mysql acquia -e quit

# Should be running memcached 1.6
lando ssh -s cache -c "memcached --version | grep 1.6"

# Check index is loading
lando ssh -s appserver -c "curl -L localhost" | grep "Hello Lando!"

# Check if AH_SITE_ENVIRONMENT is set
lando ssh -s appserver -c "curl -L localhost/site-environment.php" | grep "LANDO"
```

Destroy tests
-------------

Run the following commands to trash this app like nothing ever happened.

```bash
# Should be destroyed with success
lando destroy -y
lando poweroff
```
3 changes: 3 additions & 0 deletions examples/acquia-8.2/docroot/env.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
<pre>
<?php
print_r($_ENV);
3 changes: 3 additions & 0 deletions examples/acquia-8.2/docroot/index.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
<?php

print('Hello Lando!');
3 changes: 3 additions & 0 deletions examples/acquia-8.2/docroot/site-environment.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
<?php

print($_ENV['AH_SITE_ENVIRONMENT']);
8 changes: 8 additions & 0 deletions examples/acquia-8.3/.lando.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
name: acquia-83
recipe: acquia
config:
php: 8.3

# do not remove this
plugins:
"@lando/acquia": ../..
Loading
Loading