Skip to content
Open
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
1 change: 1 addition & 0 deletions .bun-version
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
1.3.4
9 changes: 0 additions & 9 deletions .eslintignore

This file was deleted.

44 changes: 0 additions & 44 deletions .eslintrc.json

This file was deleted.

26 changes: 13 additions & 13 deletions .github/workflows/deploy-npm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,18 +2,12 @@ name: Deploy npm

on:
workflow_call:
inputs:
node-version:
default: "20"
description: The node version to use
required: false
type: string
secrets:
github-token:
description: "The github token"
description: 'The github token'
required: true
npm-token:
description: "The npm deploy token"
description: 'The npm deploy token'
required: true

jobs:
Expand All @@ -24,19 +18,25 @@ jobs:
steps:
- name: Checkout code
uses: actions/checkout@v6
- name: Install node ${{ inputs.node-version }}

- name: Install node
uses: actions/setup-node@v6
with:
node-version: ${{ inputs.node-version }}
node-version: '24'
registry-url: https://registry.npmjs.org
cache: npm
- name: Install bun
uses: oven-sh/setup-bun@v2
with:
bun-version-file: .bun-version

- name: Install dependencies
run: npm clean-install --prefer-offline --frozen-lockfile
run: bun install --frozen-lockfile

- name: Lint code
run: npm run lint
run: bun run lint
- name: Run unit tests
run: npm run test:unit
run: bun run test:unit

- name: Update edge release alias
shell: bash
Expand Down
1 change: 0 additions & 1 deletion .github/workflows/dev-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ jobs:
arch: ${{ matrix.arch }}
edge: true
filename: lando-${{ matrix.os }}-${{ matrix.arch }}-${{ github.sha }}
node-version: "20"
os: ${{ matrix.os }}
version: dev

Expand Down
38 changes: 18 additions & 20 deletions .github/workflows/pkg-binary.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,6 @@ on:
description: The name of the resulting binary
required: false
type: string
node-version:
default: "20"
description: The node version to build for eg 16 | 18 | 20
required: true
type: string
os:
default: linux
description: The os to build for eg linux | macos | win
Expand All @@ -44,15 +39,16 @@ jobs:
uses: actions/checkout@v6
with:
fetch-depth: 0
- name: Install node ${{ inputs.node-version }}
uses: actions/setup-node@v6
- name: Install bun
uses: oven-sh/setup-bun@v2
with:
node-version: ${{ inputs.node-version }}
cache: npm
bun-version-file: .bun-version

- name: Install dependencies
run: npm clean-install --prefer-offline --frozen-lockfile --production
run: bun install --frozen-lockfile --production
- name: Install plugins
run: scripts/install-plugins.sh --lando bin/lando ${{ inputs.edge == true && '--edge' || '' }}

- name: Switch to edge channel
if: inputs.edge == true
run: |
Expand All @@ -63,16 +59,18 @@ jobs:
with:
version: ${{ inputs.version }}
sync: false
- name: Package into binary
uses: lando/pkg-action@v6
with:
entrypoint: bin/lando
filename: ${{ inputs.filename }}
node-version: ${{ inputs.node-version }}
os: ${{ inputs.os }}
options: --options dns-result-order=ipv4first
pkg: "@yao-pkg/pkg@5.16.1"
upload-key: "packaged-${{ inputs.filename }}-${{ inputs.os }}-${{ inputs.arch }}-${{ github.sha }}"

# @TODO: switch this to bun build
# - name: Package into binary
# uses: lando/pkg-action@v6
# with:
# entrypoint: bin/lando
# filename: ${{ inputs.filename }}
# os: ${{ inputs.os }}
# options: --options dns-result-order=ipv4first
# pkg: '@yao-pkg/pkg@5.16.1'
# upload-key: 'packaged-${{ inputs.filename }}-${{ inputs.os }}-${{ inputs.arch }}-${{ github.sha }}'

- name: Ensure version
if: (inputs.os == 'linux' && runner.os == 'Linux') || (inputs.os == 'macos' && runner.os == 'macOS')
run: ./dist/${{ inputs.filename }} version --all
Expand Down
65 changes: 37 additions & 28 deletions .github/workflows/pr-core-protected-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,6 @@ jobs:
# - init-remote
# - private-plugins
- yaml
node-version:
- "20"
os:
# - macos-14
- ubuntu-24.04
Expand All @@ -29,43 +27,54 @@ jobs:
steps:
- name: Checkout code
uses: actions/checkout@v6
- name: Install node ${{ matrix.node-version }}
uses: actions/setup-node@v6

- name: Install bun
uses: oven-sh/setup-bun@v2
with:
node-version: ${{ matrix.node-version }}
registry-url: https://registry.npmjs.org
cache: npm
bun-version-file: .bun-version
- name: Bundle Deps
uses: lando/prepare-release-action@v3
with:
lando-plugin: true
version: dev
sync: false
- name: Install pkg dependencies
run: npm clean-install --prefer-offline --frozen-lockfile --production
- name: Package into node binary
uses: lando/pkg-action@v6
id: pkg-action
with:
entrypoint: bin/lando
filename: lando
node-version: ${{ matrix.node-version }}
options: --options dns-result-order=ipv4first
upload: false
pkg: "@yao-pkg/pkg@5.16.1"
- name: Install full deps
run: npm clean-install --prefer-offline --frozen-lockfile
- name: Setup lando ${{ steps.pkg-action.outputs.file }}
run: bun install --frozen-lockfile --production

# - name: Package into node binary
# uses: lando/pkg-action@v6
# id: pkg-action
# with:
# entrypoint: bin/lando
# filename: lando
# node-version: ${{ matrix.node-version }}
# options: --options dns-result-order=ipv4first
# upload: false
# pkg: '@yao-pkg/pkg@5.16.1'
# - name: Install full deps
# run: npm clean-install --prefer-offline --frozen-lockfile
# - name: Setup lando ${{ steps.pkg-action.outputs.file }}
# uses: lando/setup-lando@v3
# with:
# lando-version: ${{ steps.pkg-action.outputs.file }}
# telemetry: false
# config: |
# setup.skipCommonPlugins=true

- name: Setup lando
uses: lando/setup-lando@v3
id: setup-lando
with:
lando-version: ${{ steps.pkg-action.outputs.file }}
lando-version: 3
telemetry: false
config: |
setup.skipCommonPlugins=true
- name: Replace with lando from source
run: sudo ln -sf ${{ github.workspace }}/bin/lando ${{ steps.setup-lando.outputs.lando-path }}

- name: Run Leia Tests
uses: lando/run-leia-action@v2
with:
leia-test: "./examples/${{ matrix.leia-test }}/README.md"
cleanup-header: "Destroy tests"
shell: ${{ matrix.shell }}
stdin: true
run: |
bunx @lando/leia './examples/${{ matrix.leia-test }}/README.md' \
--cleanup-header="Destroy tests" \
--shell="${{ matrix.shell }}" \
--stdin ${RUNNER_DEBUG:+--debug}
Loading