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 tests for recipe cache rebuild persistence #202

Merged
merged 2 commits into from
Sep 4, 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
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
Loading