From dcc896cd109fd70ba0ad9c9c12c788cb81e920c3 Mon Sep 17 00:00:00 2001 From: Toby Bellwood Date: Fri, 3 Dec 2021 17:17:19 +1100 Subject: [PATCH 1/2] use correct uselagoon/lagoon-cli image --- docs/usage.md | 2 +- lib/services.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/usage.md b/docs/usage.md index 26c574e..6bcff63 100644 --- a/docs/usage.md +++ b/docs/usage.md @@ -184,7 +184,7 @@ lando yarn Runs yarn commands Note that you can define your own commands by using out [tooling framework](https://docs.lando.dev/config/tooling.md). Also check out the guides for the powerful [DB Export](https://docs.lando.dev/guides/db-export.md) and [DB Import](https://docs.lando.dev/guides/db-import.md) commands. -Also, check out the [Lagoon CLI Docs](https://amazeeio.github.io/lagoon-cli/commands/lagoon/) for more information on using `lando lagoon`. +Also, check out the [Lagoon CLI Docs](https://uselagoon.github.io/lagoon-cli/commands/lagoon/) for more information on using `lando lagoon`. ### Mailhog diff --git a/lib/services.js b/lib/services.js index 4495f42..24c54b4 100644 --- a/lib/services.js +++ b/lib/services.js @@ -101,7 +101,7 @@ exports.getLandoAuxServices = (services = {}, config) => { services.lagooncli = { type: 'compose', services: { - image: 'amazeeio/lagoon-cli', + image: 'uselagoon/lagoon-cli', command: 'tail -f /dev/null', volumes: [ `${config.home}:/root`, From 0f6ce919a6e360972c16defbd068947c6def516c Mon Sep 17 00:00:00 2001 From: John Ouellet Date: Thu, 21 Apr 2022 09:37:08 -0400 Subject: [PATCH 2/2] Adjust tests --- .../pr-drupal-example-simple-tests.yml | 33 +++++++++++++++---- 1 file changed, 26 insertions(+), 7 deletions(-) diff --git a/.github/workflows/pr-drupal-example-simple-tests.yml b/.github/workflows/pr-drupal-example-simple-tests.yml index cbc8507..5a5e825 100644 --- a/.github/workflows/pr-drupal-example-simple-tests.yml +++ b/.github/workflows/pr-drupal-example-simple-tests.yml @@ -21,13 +21,23 @@ jobs: steps: # Install deps and cache + # Eventually it would be great if these steps could live in a separate YAML file + # that could be included in line to avoid code duplication - name: Checkout code uses: actions/checkout@v2 - name: Install node ${{ matrix.node-version }} uses: actions/setup-node@v2 with: node-version: ${{ matrix.node-version }} - cache: yarn + - name: Get Yarn cache directory + id: yarn-cache-dir-path + run: echo "::set-output name=dir::$(yarn cache dir)" + - name: Use Yarn cache + uses: actions/cache@v2 + id: yarn-cache + with: + path: ${{ steps.yarn-cache-dir-path.outputs.dir }} + key: ${{ runner.os }}-yarn-${{ matrix.node-version }}-v3-${{ hashFiles('**/yarn.lock') }} - name: Install Yarn dependencies run: yarn install --prefer-offline --frozen-lockfile @@ -36,21 +46,30 @@ jobs: run: | docker --version | grep "20.10." docker-compose --version | grep "1.29." - - name: Grab latest edge Lando CLI - run: | - sudo curl -fsSL -o /usr/local/bin/lando "https://files.lando.dev/cli/lando-linux-x64-${{ matrix.lando-versions }}" - sudo chmod +x /usr/local/bin/lando - name: Move in lando config appropriate for testing run: | mkdir -p ~/.lando/cache cp -f actions-lando-config.yml ~/.lando/config.yml echo false > ~/.lando/cache/report_errors - lando --clear + # This part here is cloning a second repository + - name: Checkout Lando CLI from GitHub + uses: actions/checkout@v2 + with: + repository: lando/cli + path: cli + ref: main + - name: Install Lando from GitHub Source + run: | + cd cli + yarn install --prefer-offline --frozen-lockfile + yarn build:cli + sudo mv ./dist/@lando/cli /usr/local/bin/lando + sudo chmod +x /usr/local/bin/lando - name: Verify Lando works and we are dogfooding this plugin for tests run: | + lando --clear lando version lando config --path plugins | grep lagoon | grep /home/runner/work/lagoon/lagoon || echo "::error:: Not dogfooding this plugin correctly! " - # This block should eventually become use lando/actions-leia@v2 # @NOTE? Do we want a way for our leia-action to configure apparmor since # this might break a whole bunch of tests? or is this literally just a thing