Skip to content

Commit

Permalink
add tests for recipe cache rebuild persistence (#202)
Browse files Browse the repository at this point in the history
* add tests for recipe cache rebuild persistence

* add tests for recipe cache rebuild persistence part 2
  • Loading branch information
pirog authored Sep 4, 2024
1 parent 8b03c6f commit 0e5f046
Show file tree
Hide file tree
Showing 6 changed files with 27 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/pr-core-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
# uncomment to test against edge cli
- 3-edge-slim
# uncomment to test against dev cli
# - 3-dev-slim
- 3-dev-slim
leia-test:
- badname
- build
Expand Down
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
## {{ UNRELEASED_VERSION }} - [{{ UNRELEASED_DATE }}]({{ UNRELEASED_LINK }})

* This release contains only tests and is mostly to keep version sync with the CLI

## v3.22.0-beta.5 - [September 4, 2024](https://github.com/lando/core/releases/tag/v3.22.0-beta.5)

### New Features
Expand Down
5 changes: 5 additions & 0 deletions examples/rebuild/.lando.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,5 +29,10 @@ services:
app-mount:
destination: /usr/share/nginx/html

tooling:
do-i-exist:
service: web2
cmd: echo icachethereforeiam

plugins:
"@lando/core": "../.."
5 changes: 5 additions & 0 deletions examples/rebuild/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,11 @@ docker ps --filter label=com.docker.compose.project=landorebuild | grep landoreb
docker ps --filter label=com.docker.compose.project=landorebuild | grep landorebuild_web2_1
docker ps --filter label=com.docker.compose.project=landorebuild | grep landorebuild_web3_1
docker ps --filter label=com.docker.compose.project=landorebuild | grep landorebuild_web4_1

# Should persist tooling cache between rebuilds
lando do-i-exist | grep icachethereforeiam
lando rebuild -y
lando do-i-exist | grep icachethereforeiam
```

## Destroy tests
Expand Down
5 changes: 5 additions & 0 deletions examples/recipes/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,11 @@ lando recipe | grep "I WORKED\!"
# Should load in correct recipe tooling
lando env | grep LANDO_SERVICE_NAME | grep web

# Should persist recipe tooling cache between rebuilds
lando do-i-exist | grep icachethereforeiam
lando rebuild -y
lando do-i-exist | grep icachethereforeiam

# Should add recipe services
skip

Expand Down
12 changes: 9 additions & 3 deletions examples/recipes/plugin-recipe-test/builders/test.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,15 @@ module.exports = {
config: {
proxy: {},
services: {},
tooling: {env: {
service: 'web',
}},
tooling: {
'do-i-exist': {
service: 'web',
cmd: 'echo icachethereforeiam',
},
'env': {
service: 'web',
},
},
},
builder: (parent, config) => class LandoDrupal7 extends parent {
constructor(id, options = {}) {
Expand Down

0 comments on commit 0e5f046

Please sign in to comment.