Skip to content

Commit

Permalink
#2: first pass on support for lando setup
Browse files Browse the repository at this point in the history
  • Loading branch information
pirog committed Nov 6, 2023
1 parent 3bc7c53 commit 21befa0
Show file tree
Hide file tree
Showing 14 changed files with 34,490 additions and 14,609 deletions.
39 changes: 39 additions & 0 deletions .github/workflows/pr-setup.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: Setup Tests

on:
pull_request:

jobs:
setup-lando-os-test:
runs-on: ${{ matrix.os }}
env:
term: xterm
strategy:
fail-fast: false
matrix:
os:
# - macos-12
- ubuntu-22.04
# - windows-2022
node-version:
- '16'

steps:
- name: Checkout code
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Install node ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
cache: yarn
- name: Install Yarn dependencies and prepare
run: |
yarn install --prefer-offline --frozen-lockfile
yarn prepare
- name: Setup Lando version
uses: ./
with:
dependency-check: false
5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ This action installs Lando in GitHub Actions. With it you can:
* Install from a URL eg `https://github.com/lando/cli/releases/download/v3.18.0/lando-linux-x64-v3.18.0`
* Install from a local file eg `/home/runner/work/setup-lando/setup-lando/bin/lando`
* Set [global Lando config](https://docs.lando.dev/core/global.html) configuration
* Specify how, or if, `lando setup` should run
* Toggle `lando` debugging via [GitHub Actions](https://github.blog/changelog/2022-05-24-github-actions-re-run-jobs-with-debug-logging)
* Verify underlying `engine` and `orchestrator` dependencies are installed and correct

Expand All @@ -23,6 +24,9 @@ All inputs are optional. If you do nothing the latest `stable` Lando will be ins
| `lando-version-file` | A file that contains the version of Lando to install. | `.lando-version` | `.tool-versions` |
| `config` | A list of `.` delimited config. If set these have primacy over values in `config-file` | `null` | `engineConfig.port=2376` |
| `config-file` | The path to a Lando global config file to use. | `null` | `/config/lando-global.yml` |
| `setup` | The lando setup command to run. | `lando setup -y` | `lando setup --skip-common-plugins --plugin @lando/core@~/path/to/core -y` |

* Note that `setup` is only available in Lando 3.21+

## Outputs

Expand Down Expand Up @@ -111,6 +115,7 @@ outputs:
os: macOS
telemetry: false
token: ${{ github.token }}
setup: lando setup --orchestrator 2.22.0 --plugins @pirog/my-plugin -y
```
## Changelog
Expand Down
6 changes: 5 additions & 1 deletion action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,10 @@ inputs:
description: "The OS to use. Defaults to system OS."
required: false
default: ${{ runner.os }}
setup:
description: "The lando setup configuration"
required: false
default: auto
telemetry:
description: "To send telemetry or not."
required: false
Expand All @@ -48,5 +52,5 @@ outputs:
description: "The path to the installed version of Lando."

runs:
using: "node16"
using: "node18"
main: "dist/index.js"
Loading

0 comments on commit 21befa0

Please sign in to comment.