Skip to content

Commit

Permalink
first pass on setup-lando (#1)
Browse files Browse the repository at this point in the history
* first pass on setup-lando

* use github context instead of secret

* fix issue with windows invocation

* fix download information group

* fix download information group part 2

* fix download information group part 3

* ensure we prep before testing and that we remove debug codes

* add to download info

* mix in version tests

* add version file tests

* add version file tests part 2

* add version file tests part 3

* add version file tests part 4
  • Loading branch information
pirog authored May 5, 2023
1 parent ecdcaf2 commit 692a937
Show file tree
Hide file tree
Showing 22 changed files with 21,484 additions and 493 deletions.
40 changes: 40 additions & 0 deletions .github/workflows/pr-file-tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
name: PR File Tests

on:
pull_request:

jobs:
setup-lando-os-test:
runs-on: ${{ matrix.os }}
env:
term: xterm
strategy:
fail-fast: false
matrix:
os:
- ubuntu-22.04
node-version:
- '16'
lando-version-file:
- '.lando-version'
- '.tool-versions'

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 ${{ matrix.lando-version-file }}
uses: ./
with:
lando-version-file: ${{ matrix.lando-version-file }}
37 changes: 37 additions & 0 deletions .github/workflows/pr-os-tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: PR OS 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: ./
114 changes: 0 additions & 114 deletions .github/workflows/pr-tests.yml

This file was deleted.

51 changes: 51 additions & 0 deletions .github/workflows/pr-versions-tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
name: PR Version Tests

on:
pull_request:

jobs:
setup-lando-os-test:
runs-on: ${{ matrix.os }}
env:
term: xterm
strategy:
fail-fast: false
matrix:
os:
- ubuntu-22.04
node-version:
- '16'
lando-version:
- '3.x'
- '>2'
- '3'
- '3.14'
- '3.14.0'
- '3-stable'
- '3-edge'
- '3-latest'
- '3-dev'
- 'stable'
- 'edge'
- 'latest'
- 'dev'

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 ${{ matrix.lando-version }}
uses: ./
with:
lando-version: ${{ matrix.lando-version }}
4 changes: 0 additions & 4 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@ lando.env

# Build dirs
build
dist

# coverage reporting
.nyc_output
Expand All @@ -37,6 +36,3 @@ coverage/
.temp
.cache
_site
docs/.vuepress/.cache
docs/.vuepress/.temp
docs/.vuepress/dist
2 changes: 1 addition & 1 deletion .lando-version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
3.14.0
3.12.0
2 changes: 1 addition & 1 deletion .tool-versions
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
nodejs 16
lando 3
lando 3.11.0
7 changes: 7 additions & 0 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,11 @@ inputs:
lando-version-file:
description: "A file containing the version to use."
required: false
default: ".lando-version"
architecture:
description: "The architecture to use. Defaults to system architecture."
required: false
default: ${{ runner.arch }}
config:
description: "A list of . delimited config."
required: false
Expand All @@ -27,6 +29,11 @@ inputs:
os:
description: "The OS to use. Defaults to system OS."
required: false
default: ${{ runner.os }}
token:
description: "The GITHUB_TOKEN."
required: false
default: ${{ github.token }}

outputs:
lando:
Expand Down
Loading

0 comments on commit 692a937

Please sign in to comment.