Skip to content
Closed
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
21 changes: 12 additions & 9 deletions .github/workflows/deploy-npm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ name: Deploy npm
on:
workflow_call:
inputs:
node-version:
default: "20"
description: The node version to use
bun-version:
default: "1.3.5"
description: The bun version to use
required: false
type: string
secrets:
Expand All @@ -24,19 +24,22 @@ jobs:
steps:
- name: Checkout code
uses: actions/checkout@v6
- name: Install node ${{ inputs.node-version }}
- name: Install node 20
uses: actions/setup-node@v6
with:
node-version: ${{ inputs.node-version }}
node-version: "20"
registry-url: https://registry.npmjs.org
cache: npm
- name: Install bun ${{ inputs.bun-version }}
uses: oven-sh/setup-bun@v2
with:
bun-version: ${{ inputs.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
7 changes: 5 additions & 2 deletions .github/workflows/pkg-binary.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,9 +48,12 @@ jobs:
uses: actions/setup-node@v6
with:
node-version: ${{ inputs.node-version }}
cache: npm
- name: Install bun
uses: oven-sh/setup-bun@v2
with:
bun-version: "1.3.5"
- 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
Expand Down
32 changes: 15 additions & 17 deletions .github/workflows/pr-core-protected-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@ jobs:
- yaml
node-version:
- "20"
bun-version:
- "1.3.5"
os:
# - macos-14
- ubuntu-24.04
Expand All @@ -34,31 +36,27 @@ jobs:
with:
node-version: ${{ matrix.node-version }}
registry-url: https://registry.npmjs.org
cache: npm
- name: Install bun ${{ matrix.bun-version }}
uses: oven-sh/setup-bun@v2
with:
bun-version: ${{ matrix.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 }}
- name: Install dependencies
run: bun install --frozen-lockfile
- name: Build Bun binary
id: build-binary
run: |
bun build ./bin/lando --compile --outfile dist/lando
echo "file=$(pwd)/dist/lando" >> $GITHUB_OUTPUT
- name: Setup lando ${{ steps.build-binary.outputs.file }}
uses: lando/setup-lando@v3
with:
lando-version: ${{ steps.pkg-action.outputs.file }}
lando-version: ${{ steps.build-binary.outputs.file }}
telemetry: false
config: |
setup.skipCommonPlugins=true
Expand Down
38 changes: 15 additions & 23 deletions .github/workflows/pr-core-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,8 @@ jobs:
- update
- version
- yaml
node-version:
- "20"
bun-version:
- "1.3.5"
os:
# - macos-14
- ubuntu-24.04
Expand All @@ -72,36 +72,28 @@ jobs:
steps:
- name: Checkout code
uses: actions/checkout@v6
- name: Install node ${{ matrix.node-version }}
uses: actions/setup-node@v6
- name: Install bun ${{ matrix.bun-version }}
uses: oven-sh/setup-bun@v2
with:
node-version: ${{ matrix.node-version }}
registry-url: https://registry.npmjs.org
cache: npm
bun-version: ${{ matrix.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 }}
- name: Install dependencies
run: bun install --frozen-lockfile
- name: Build lando binary
run: |
bun build ./bin/lando --compile --outfile=dist/lando
chmod +x dist/lando
echo "file=$(pwd)/dist/lando" >> $GITHUB_OUTPUT
id: build-binary
- name: Setup lando ${{ steps.build-binary.outputs.file }}
uses: lando/setup-lando@v3
with:
lando-version: ${{ steps.pkg-action.outputs.file }}
lando-version: ${{ steps.build-binary.outputs.file }}
telemetry: false
config: |
setup.skipCommonPlugins=true
Expand Down
55 changes: 23 additions & 32 deletions .github/workflows/pr-docs-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ jobs:
matrix:
os:
- ubuntu-24.04
node-version:
- "20"
bun-version:
- "1.3.5"
steps:
- name: Checkout code
uses: actions/checkout@v6
Expand All @@ -22,21 +22,20 @@ jobs:
with:
key: lando-mvb-docs
path: docs/.vitepress/cache/@lando/mvb
- name: Install node ${{ matrix.node-version }}
uses: actions/setup-node@v6
- name: Install bun ${{ matrix.bun-version }}
uses: oven-sh/setup-bun@v2
with:
node-version: ${{ matrix.node-version }}
cache: npm
bun-version: ${{ matrix.bun-version }}
- name: Install dependencies
run: npm clean-install --prefer-offline --frozen-lockfile
run: bun install --frozen-lockfile

# Run tests
- name: Run linter
run: npm run lint
run: bun run lint
- name: Test mvb
run: npm run docs:mvb
run: bun run docs:mvb
- name: Test build
run: npm run docs:build
run: bun run docs:build

lando-docs-tests:
runs-on: ${{ matrix.os }}
Expand All @@ -47,40 +46,32 @@ jobs:
matrix:
os:
- ubuntu-24.04
node-version:
- "20"
bun-version:
- "1.3.5"
steps:
- name: Checkout code
uses: actions/checkout@v6
- name: Install node ${{ matrix.node-version }}
uses: actions/setup-node@v6
- name: Install bun ${{ matrix.bun-version }}
uses: oven-sh/setup-bun@v2
with:
node-version: ${{ matrix.node-version }}
cache: npm
bun-version: ${{ matrix.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 }}
- name: Install dependencies
run: bun install --frozen-lockfile
- name: Build Bun binary
id: build-binary
run: |
bun build ./bin/lando --compile --outfile dist/lando
echo "file=$(pwd)/dist/lando" >> $GITHUB_OUTPUT
- name: Setup lando ${{ steps.build-binary.outputs.file }}
uses: lando/setup-lando@v3
with:
lando-version: ${{ steps.pkg-action.outputs.file }}
lando-version: ${{ steps.build-binary.outputs.file }}
telemetry: false
config: |
setup.skipCommonPlugins=true
Expand Down
19 changes: 9 additions & 10 deletions .github/workflows/pr-license-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,19 +10,18 @@ jobs:
matrix:
os:
- ubuntu-24.04
node-version:
- "20"
bun-version:
- "1.3.5"
steps:
- name: Checkout code
uses: actions/checkout@v6
- name: Install node ${{ matrix.node-version }}
uses: actions/setup-node@v6
- name: Install Bun ${{ matrix.bun-version }}
uses: oven-sh/setup-bun@v2
with:
node-version: ${{ matrix.node-version }}
cache: npm
bun-version: ${{ matrix.bun-version }}
- name: Install dependencies
run: npm clean-install --prefer-offline --frozen-lockfile
- name: Run license cehck
run: bun install --frozen-lockfile
- name: Run license check
run: |
npm install --global license-checker
npx license-checker --production --summary
bun add -g license-checker
bunx license-checker --production --summary
15 changes: 7 additions & 8 deletions .github/workflows/pr-linter.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,20 +10,19 @@ jobs:
matrix:
os:
- ubuntu-24.04
node-version:
- "20"
bun-version:
- "1.3.5"
steps:
# Install deps and cache
- name: Checkout code
uses: actions/checkout@v6
- name: Install node ${{ matrix.node-version }}
uses: actions/setup-node@v6
- name: Install bun ${{ matrix.bun-version }}
uses: oven-sh/setup-bun@v2
with:
node-version: ${{ matrix.node-version }}
cache: npm
bun-version: ${{ matrix.bun-version }}
- name: Install dependencies
run: npm clean-install --prefer-offline --frozen-lockfile
run: bun install --frozen-lockfile

# Run the linter
- name: Run code linter
run: npm run lint
run: bun run lint
19 changes: 11 additions & 8 deletions .github/workflows/pr-release-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,23 +60,26 @@ jobs:
TERM: xterm
strategy:
matrix:
node-version:
- '20'
bun-version:
- "1.3.5"
steps:
- name: Checkout code
uses: actions/checkout@v6
- name: Install node ${{ matrix.node-version }}
- name: Install node 20
uses: actions/setup-node@v6
with:
node-version: ${{ matrix.node-version }}
node-version: "20"
registry-url: https://registry.npmjs.org
cache: npm
- name: Install bun ${{ matrix.bun-version }}
uses: oven-sh/setup-bun@v2
with:
bun-version: ${{ matrix.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: Prepare Release
uses: lando/prepare-release-action@v3
with:
Expand Down
11 changes: 8 additions & 3 deletions .github/workflows/pr-setup-linux-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ jobs:
- setup-linux
node-version:
- "20"
bun-version:
- "1.3.5"
os:
- ubuntu-24.04

Expand All @@ -26,15 +28,18 @@ jobs:
with:
node-version: ${{ matrix.node-version }}
registry-url: https://registry.npmjs.org
cache: npm
- name: Install bun ${{ matrix.bun-version }}
uses: oven-sh/setup-bun@v2
with:
bun-version: ${{ matrix.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
run: bun install --frozen-lockfile --production
- name: Package into node binary
uses: lando/pkg-action@v6
id: pkg-action
Expand All @@ -46,7 +51,7 @@ jobs:
upload: false
pkg: "@yao-pkg/pkg@5.16.1"
- name: Install full deps
run: npm clean-install --prefer-offline --frozen-lockfile
run: bun install --frozen-lockfile
- name: Setup lando ${{ steps.pkg-action.outputs.file }}
uses: lando/setup-lando@v3
with:
Expand Down
Loading
Loading